|
10 | 10 | "access": "public"
|
11 | 11 | },
|
12 | 12 | "scripts": {
|
13 |
| - "test": "npm run test:unit", |
14 |
| - "test:unit": "jest --group=unit --detectOpenHandles --coverage --verbose", |
15 |
| - "jest": "jest --detectOpenHandles --verbose", |
16 |
| - "test:e2e:nodejs18x": "RUNTIME=nodejs18x jest --group=e2e", |
17 |
| - "test:e2e:nodejs20x": "RUNTIME=nodejs20x jest --group=e2e", |
18 |
| - "test:e2e": "jest --group=e2e", |
19 |
| - "watch": "jest --watch", |
| 13 | + "test": "vitest --run tests/unit", |
| 14 | + "test:unit": "vitest --run tests/unit", |
| 15 | + "test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'", |
| 16 | + "test:unit:types": "vitest --run tests/types --typecheck", |
| 17 | + "test:unit:watch": "vitest tests/unit", |
| 18 | + "test:e2e:nodejs18x": "RUNTIME=nodejs18x vitest --run tests/e2e", |
| 19 | + "test:e2e:nodejs20x": "RUNTIME=nodejs20x vitest --run tests/e2e", |
| 20 | + "test:e2e": "vitest --run tests/e2e", |
20 | 21 | "build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
|
21 | 22 | "build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
|
22 | 23 | "build": "npm run build:esm & npm run build:cjs",
|
|
0 commit comments