aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 10:22:50 +0200
committerUri Shaked2025-02-11 10:22:50 +0200
commit05c5c7e9069e1ace3441c1f8f12e45b3d304748e (patch)
tree8047a1a96c544794300bd80ecfc4590315be7076 /package.json
parentci: update Node.js versions (diff)
downloadavr8js-05c5c7e9069e1ace3441c1f8f12e45b3d304748e.tar.gz
avr8js-05c5c7e9069e1ace3441c1f8f12e45b3d304748e.tar.bz2
avr8js-05c5c7e9069e1ace3441c1f8f12e45b3d304748e.zip
test: migrate tests from jest to vitest
Diffstat (limited to 'package.json')
-rw-r--r--package.json19
1 files changed, 8 insertions, 11 deletions
diff --git a/package.json b/package.json
index 4596bbf..c95c6ac 100644
--- a/package.json
+++ b/package.json
@@ -26,8 +26,8 @@
"prepare": "husky install && npm run build",
"start": "vite demo",
"lint": "eslint src/**/*.ts demo/**/*.ts",
- "test": "npm run lint && jest",
- "test:watch": "jest --watch",
+ "test": "npm run lint && vitest run",
+ "test:watch": "vitest",
"benchmark:prepare": "ts-node --project tsconfig.benchmark.json benchmark/convert-instructions.ts",
"benchmark": "ts-node --project tsconfig.benchmark.json benchmark/index.ts"
},
@@ -35,8 +35,7 @@
"dist"
],
"devDependencies": {
- "@types/jest": "^29.2.5",
- "@types/node": "^12.12.50",
+ "@types/node": "^18.0.0",
"@types/prettier": "^2.3.2",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
@@ -44,18 +43,16 @@
"acorn": "^7.3.1",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
- "eslint-plugin-jest": "^27.2.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^6.0.0",
- "jest": "^29.3.1",
"lint-staged": "^9.5.0",
- "vite": "^2.9.9",
+ "vite": "^5.0.0",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
- "ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
- "typescript": "^4.9.4"
+ "typescript": "^4.9.4",
+ "vitest": "^3.0.5"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
@@ -65,8 +62,8 @@
]
},
"engines": {
- "node": ">= 8.0.0",
- "npm": ">= 5.0.0"
+ "node": ">= 18.0.0",
+ "npm": ">= 10.0.0"
},
"dependencies": {},
"alias": {