|
25 | 25 | "lint:oxlint": "oxlint 'packages/**/*.{ts,tsx,js,jsx}'", |
26 | 26 | "lint:tsc": "tsc -p tsconfig.json --noEmit", |
27 | 27 | "lint-staged": "lint-staged", |
28 | | - "test": "pnpm test:karma && pnpm test:mocha", |
| 28 | + "test": "pnpm test:karma && pnpm test:mocha && pnpm test:vitest", |
29 | 29 | "test:minify": "pnpm test:karma:minify && pnpm test:mocha", |
30 | 30 | "test:prod": "pnpm test:karma:prod && pnpm test:mocha:prod", |
31 | 31 | "test:karma": "cross-env COVERAGE=true karma start karma.conf.js --single-run", |
|
35 | 35 | "test:karma:prod:watch": "cross-env NODE_ENV=production karma start karma.conf.js --no-single-run", |
36 | 36 | "test:mocha": "cross-env COVERAGE=true mocha --require test/node/setup.js --recursive packages/*/test/node/**.test.tsx", |
37 | 37 | "test:mocha:prod": "cross-env COVERAGE=true NODE_ENV=production mocha --require test/node/setup.js --recursive packages/*/test/node/**.test.tsx", |
| 38 | + "test:vitest": "cross-env COVERAGE=true vitest run", |
38 | 39 | "docs:start": "cd docs && pnpm start", |
39 | 40 | "docs:build": "cd docs && pnpm build", |
40 | 41 | "docs:preview": "cd docs && pnpm preview", |
41 | 42 | "ci:build": "pnpm build && pnpm docs:build", |
42 | 43 | "ci:test": "pnpm lint && pnpm test", |
43 | | - "prepare": "husky install", |
| 44 | + "prepare": "husky install && playwright install chromium", |
44 | 45 | "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,yml,json,md}'", |
45 | 46 | "version": "pnpm changeset version && pnpm i --lockfile-only" |
46 | 47 | }, |
|
68 | 69 | "@types/node": "^18.19.103", |
69 | 70 | "@types/sinon": "^10.0.13", |
70 | 71 | "@types/sinon-chai": "^3.2.8", |
| 72 | + "@vitest/coverage-v8": "^3.2.4", |
71 | 73 | "babel-plugin-istanbul": "^6.1.1", |
72 | 74 | "babel-plugin-transform-rename-properties": "^0.1.0", |
73 | 75 | "buffer": "^6.0.3", |
|
89 | 91 | "microbundle": "^0.15.1", |
90 | 92 | "mocha": "^10.0.0", |
91 | 93 | "oxlint": "^1.3.0", |
| 94 | + "playwright": "^1.53.1", |
92 | 95 | "prettier": "^3.6.2", |
93 | 96 | "shx": "^0.3.4", |
94 | 97 | "sinon": "^14.0.0", |
95 | 98 | "sinon-chai": "^3.7.0", |
96 | | - "typescript": "~5.8.3" |
| 99 | + "typescript": "~5.8.3", |
| 100 | + "vitest": "^3.2.4" |
97 | 101 | }, |
98 | 102 | "lint-staged": { |
99 | 103 | "**/*.{js,jsx,ts,tsx,yml,json,md}": [ |
|
0 commit comments