|
12 | 12 | "lint": "prettier --check '{src,test}/**/*' README.md package.json", |
13 | 13 | "lint:fix": "prettier --write '{src,test}/**/*' README.md package.json", |
14 | 14 | "pretest": "npm run -s lint && npm run build", |
15 | | - "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --coverage", |
| 15 | + "test": "vitest run --coverage test/*.test.ts", |
16 | 16 | "test:typescript": "npx tsc --noEmit --declaration --noUnusedLocals --esModuleInterop --strict --module node16 --moduleResolution node16 --exactOptionalPropertyTypes --strict test/typescript-validate.ts", |
17 | | - "test:watch": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --watch", |
18 | | - "test:e2e": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --testRegex test/*.e2e.ts" |
| 17 | + "test:watch": "vitest watch test/*.test.ts", |
| 18 | + "test:e2e": "vitest test/*.e2e.ts" |
19 | 19 | }, |
20 | 20 | "repository": "github:octokit/plugin-paginate-graphql.js", |
21 | 21 | "keywords": [ |
|
29 | 29 | "@octokit/core": ">=6" |
30 | 30 | }, |
31 | 31 | "devDependencies": { |
32 | | - "@octokit/core": "^6.0.0", |
| 32 | + "@octokit/core": "^6.1.3", |
33 | 33 | "@octokit/plugin-rest-endpoint-methods": "^13.0.0", |
34 | 34 | "@octokit/tsconfig": "^4.0.0", |
35 | | - "@types/fetch-mock": "^7.3.1", |
36 | | - "@types/jest": "^29.0.0", |
37 | 35 | "@types/node": "^22.0.0", |
| 36 | + "@vitest/coverage-v8": "^2.1.8", |
38 | 37 | "esbuild": "^0.24.0", |
39 | | - "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", |
| 38 | + "fetch-mock": "^11.0.0", |
40 | 39 | "glob": "^10.2.6", |
41 | | - "jest": "^29.0.0", |
42 | 40 | "prettier": "3.4.2", |
43 | 41 | "semantic-release-plugin-update-version-in-files": "^1.0.0", |
44 | 42 | "ts-jest": "^29.0.0", |
45 | | - "typescript": "^5.0.0" |
46 | | - }, |
47 | | - "jest": { |
48 | | - "preset": "ts-jest", |
49 | | - "extensionsToTreatAsEsm": [ |
50 | | - ".ts" |
51 | | - ], |
52 | | - "transform": { |
53 | | - "^.+\\.(ts|tsx)$": [ |
54 | | - "ts-jest", |
55 | | - { |
56 | | - "tsconfig": "test/tsconfig.test.json", |
57 | | - "useESM": true |
58 | | - } |
59 | | - ] |
60 | | - }, |
61 | | - "coveragePathIgnorePatterns": [ |
62 | | - "./test/testHelpers", |
63 | | - "./pkg" |
64 | | - ], |
65 | | - "coverageThreshold": { |
66 | | - "global": { |
67 | | - "statements": 100, |
68 | | - "branches": 100, |
69 | | - "functions": 100, |
70 | | - "lines": 100 |
71 | | - } |
72 | | - }, |
73 | | - "moduleNameMapper": { |
74 | | - "^(.+)\\.jsx?$": "$1" |
75 | | - } |
| 43 | + "typescript": "^5.0.0", |
| 44 | + "vitest": "^2.1.8" |
76 | 45 | }, |
77 | 46 | "release": { |
78 | | - "branches": [ |
79 | | - "+([0-9]).x", |
80 | | - "main", |
81 | | - "next", |
82 | | - { |
83 | | - "name": "beta", |
84 | | - "prerelease": true |
85 | | - } |
86 | | - ], |
87 | 47 | "plugins": [ |
88 | 48 | "@semantic-release/commit-analyzer", |
89 | 49 | "@semantic-release/release-notes-generator", |
|
0 commit comments