test: use vitest instead of jest

This commit is contained in:
Johannes Loher 2022-08-22 22:05:14 +02:00
parent 7d953d5a50
commit bb6d22d14a
12 changed files with 530 additions and 2288 deletions

View file

@ -47,10 +47,13 @@
"clean:link": "node ./tools/link-package.js --clean",
"lint": "eslint --ext .ts,.js,.cjs,.mjs .",
"lint:fix": "eslint --ext .ts,.js,.cjs,.mjs --fix .",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci --reporters=default --reporters=jest-junit",
"format": "prettier --write \"./**/*.(ts|js|cjs|mjs|json|scss|yml)\"",
"test": "run-p test:vitest test:typecheck",
"test:vitest": "vitest run",
"test:typecheck": "tsc --noEmit --project spec/tsconfig.json",
"test:watch": "vitest",
"test:ci": "run-p test:ci:vitest test:typecheck",
"test:ci:vitest": "vitest run --reporter=default --reporter=junit --outputFile=junit.xml",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch",
"bump-version": "node ./tools/bump-version.js",
@ -75,19 +78,16 @@
"@seald-io/nedb": "3.0.0",
"@swc/core": "1.2.241",
"@types/fs-extra": "9.0.13",
"@types/jest": "28.1.7",
"@types/node": "16.11.53",
"@typescript-eslint/eslint-plugin": "5.34.0",
"@typescript-eslint/parser": "5.34.0",
"conventional-changelog-cli": "2.2.2",
"conventional-changelog-conventionalcommits": "5.0.0",
"eslint": "8.22.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.8.7",
"eslint-plugin-prettier": "4.2.1",
"fs-extra": "10.1.0",
"husky": "8.0.1",
"jest": "28.1.3",
"jest-junit": "14.0.0",
"lint-staged": "13.0.3",
"npm-run-all": "4.1.5",
"prettier": "2.7.1",
@ -98,9 +98,10 @@
"rollup-plugin-swc3": "0.3.0",
"sass": "1.54.5",
"semver": "7.3.7",
"ts-jest": "28.0.8",
"tslib": "2.4.0",
"typescript": "4.7.4",
"vite": "3.0.9",
"vitest": "0.22.1",
"yargs": "17.5.1"
},
"lint-staged": {