Create tests setup

This commit is contained in:
enzoggqs 2023-01-11 13:13:32 -03:00
parent d09f6c45cf
commit 06eac3b84c
5 changed files with 22923 additions and 169 deletions

18
babel.config.js Normal file
View File

@ -0,0 +1,18 @@
module.exports = {
'presets': [
['@babel/preset-env', {
modules: false
}],
],
'env': {
'test': {
'presets': [
[
'@babel/preset-env', {
'targets': { 'node': 'current' }
}
]
]
}
},
}

20186
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,8 @@
"start": "vite --host=0.0.0.0 --port 3000",
"build": "run-p type-check build-only",
"preview": "vite preview",
"test:unit": "jest",
"test:watch": "jest --verbose --watch",
"serve": "vue-cli-service serve",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
@ -22,25 +24,45 @@
"vue-router": "^4.1.5"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@rushstack/eslint-patch": "^1.1.4",
"@types/crc": "^3.8.0",
"@types/jest": "^27.0.0",
"@types/node": "^16.11.68",
"@types/qrcode": "^1.5.0",
"@vitejs/plugin-vue": "^3.1.2",
"@vitejs/plugin-vue-jsx": "^2.0.1",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/test-utils": "^2.2.7",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.12",
"babel-jest": "^27.0.0",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"ethers": "^5.7.2",
"jest": "^27.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"tailwindcss": "^3.2.1",
"ts-jest": "^27.0.0",
"typescript": "~4.7.4",
"vite": "^3.1.8",
"vue-tsc": "^1.0.8"
"vue-tsc": "^1.0.8",
"vue3-jest": "^27.0.0-alpha.1"
},
"jest": {
"testEnvironment": "jsdom",
"moduleFileExtensions": [
"js",
"ts",
"json",
"vue"
],
"transform": {
".*\\.(vue)$": "vue3-jest",
"^.+\\.tsx?$": "ts-jest"
}
}
}

View File

@ -6,6 +6,7 @@
"paths": {
"@/*": ["./src/*"]
},
"types": ["jest", "node"],
"resolveJsonModule": true
},

2863
yarn.lock

File diff suppressed because it is too large Load Diff