|
8 | 8 | "lint": "prettier --check '{src,test,scripts}/**/*' '!scripts/update-endpoints/generated/**' '!src/generated/**' README.md package.json", |
9 | 9 | "lint:fix": "prettier --write '{src,test,scripts}/**/*' '!scripts/update-endpoints/generated/**' '!src/generated/**' README.md package.json", |
10 | 10 | "pretest": "npm run -s lint", |
11 | | - "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --coverage", |
12 | | - "update-endpoints": "npm-run-all update-endpoints:*", |
| 11 | + "test": "vitest run --coverage", |
| 12 | + "update-endpoints": "npm run update-endpoints:fetch-json && npm run update-endpoints:code && npm run update-endpoints:docs && npm run update-endpoints:types", |
13 | 13 | "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json.mjs", |
14 | 14 | "update-endpoints:code": "node scripts/update-endpoints/code.mjs", |
15 | 15 | "update-endpoints:docs": "node scripts/update-endpoints/docs.mjs", |
|
30 | 30 | "devDependencies": { |
31 | 31 | "@octokit/core": "^6.0.0", |
32 | 32 | "@octokit/tsconfig": "^3.0.0", |
33 | | - "@types/fetch-mock": "^7.3.1", |
34 | | - "@types/jest": "^29.0.0", |
35 | 33 | "@types/node": "^20.0.0", |
36 | | - "@types/sinon": "^17.0.0", |
| 34 | + "@vitest/coverage-v8": "^2.0.3", |
| 35 | + "camelcase": "^8.0.0", |
37 | 36 | "esbuild": "^0.23.0", |
38 | | - "fetch-mock": "npm:@gr2m/fetch-mock@^9.11.0-pull-request-644.1", |
| 37 | + "fetch-mock": "^10.0.0", |
39 | 38 | "github-openapi-graphql-query": "^4.3.1", |
40 | 39 | "glob": "^11.0.0", |
41 | | - "jest": "^29.0.0", |
42 | | - "lodash.camelcase": "^4.3.0", |
43 | | - "lodash.set": "^4.3.2", |
44 | | - "lodash.upperfirst": "^4.3.1", |
45 | | - "mustache": "^4.0.0", |
46 | | - "npm-run-all2": "^6.0.0", |
47 | 40 | "prettier": "3.3.3", |
48 | 41 | "semantic-release-plugin-update-version-in-files": "^1.0.0", |
49 | 42 | "sinon": "^18.0.0", |
50 | 43 | "sort-keys": "^5.0.0", |
51 | 44 | "string-to-jsdoc-comment": "^1.0.0", |
52 | | - "ts-jest": "^29.0.0", |
53 | | - "typescript": "^5.0.0" |
| 45 | + "typescript": "^5.0.0", |
| 46 | + "vitest": "^2.0.3" |
54 | 47 | }, |
55 | 48 | "peerDependencies": { |
56 | 49 | "@octokit/core": ">=6" |
57 | 50 | }, |
58 | | - "jest": { |
59 | | - "extensionsToTreatAsEsm": [ |
60 | | - ".ts" |
61 | | - ], |
62 | | - "transform": { |
63 | | - "^.+\\.(ts|tsx)$": [ |
64 | | - "ts-jest", |
65 | | - { |
66 | | - "tsconfig": "test/tsconfig.test.json", |
67 | | - "useESM": true |
68 | | - } |
69 | | - ] |
70 | | - }, |
71 | | - "coverageThreshold": { |
72 | | - "global": { |
73 | | - "statements": 100, |
74 | | - "branches": 100, |
75 | | - "functions": 100, |
76 | | - "lines": 100 |
77 | | - } |
78 | | - }, |
79 | | - "moduleNameMapper": { |
80 | | - "^(.+)\\.jsx?$": "$1" |
81 | | - } |
82 | | - }, |
83 | 51 | "release": { |
84 | 52 | "branches": [ |
85 | 53 | "+([0-9]).x", |
|
0 commit comments