add jest
This commit is contained in:
parent
e67cc79812
commit
e2d8c95a7b
|
@ -0,0 +1,6 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
['@babel/preset-env', { targets: { node: 'current' } }],
|
||||||
|
'@babel/preset-typescript',
|
||||||
|
],
|
||||||
|
}
|
|
@ -19,13 +19,18 @@
|
||||||
"test": "wsrun -e -c -s test"
|
"test": "wsrun -e -c -s test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.18.2",
|
||||||
|
"@babel/preset-env": "^7.18.2",
|
||||||
|
"@babel/preset-typescript": "^7.17.12",
|
||||||
"@parcel/config-default": "^2.6.0",
|
"@parcel/config-default": "^2.6.0",
|
||||||
"@parcel/packager-ts": "2.3.2",
|
"@parcel/packager-ts": "2.3.2",
|
||||||
"@parcel/transformer-js": "^2.6.0",
|
"@parcel/transformer-js": "^2.6.0",
|
||||||
"@parcel/transformer-react-refresh-wrap": "^2.6.0",
|
"@parcel/transformer-react-refresh-wrap": "^2.6.0",
|
||||||
"@parcel/transformer-typescript-types": "2.3.2",
|
"@parcel/transformer-typescript-types": "2.3.2",
|
||||||
|
"@types/jest": "^27.5.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
||||||
"@typescript-eslint/parser": "^5.12.0",
|
"@typescript-eslint/parser": "^5.12.0",
|
||||||
|
"babel-jest": "^28.1.0",
|
||||||
"eslint": "^8.9.0",
|
"eslint": "^8.9.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-import-resolver-node": "^0.3.6",
|
"eslint-import-resolver-node": "^0.3.6",
|
||||||
|
@ -39,6 +44,7 @@
|
||||||
"eslint-plugin-react-hooks": "^4.3.0",
|
"eslint-plugin-react-hooks": "^4.3.0",
|
||||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
|
"jest": "^28.1.0",
|
||||||
"lint-staged": "^12.3.4",
|
"lint-staged": "^12.3.4",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"parcel": "^2.3.2",
|
"parcel": "^2.3.2",
|
||||||
|
|
Loading…
Reference in New Issue