-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use Vitest over Jest (#1306)
* refactor: vitest setup * refactor: apply grit transform and biome check * refactor: to not import vitest globals * fix: remove unused rule * refactor: tests to esm * fix: to import vitest * fix: vitest run scripts * fix: add coverage dependency * chore: disable codecov * fix: biome globals
- Loading branch information
Showing
26 changed files
with
994 additions
and
1,589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,15 @@ | |
"changeset:version-and-format": "changeset version && pnpm format '**/package.json' && pnpm install --no-frozen-lockfile", | ||
"changeset": "changeset", | ||
"clean": "manypkg exec rm -rf build dist tsconfig.tsbuildinfo ts-build-cache", | ||
"develop": "jest --projects .jestrc.test.json --watch", | ||
"biome:check": "biome check --write", | ||
"biome:fix": "biome lint --write", | ||
"format": "biome format --write", | ||
"lint": "biome lint", | ||
"prerelease": "cross-env NODE_ENV=production pnpm auth && pnpm build", | ||
"release": "changeset publish", | ||
"setup": "husky install && preconstruct dev && manypkg check && check-node-version --package --print", | ||
"test:ci:coverage": "cross-env NODE_ENV=test npm test -- --no-watchman --coverage", | ||
"test:ci": "cross-env NODE_ENV=test npm test -- --no-watchman", | ||
"test:coverage": "cross-env NODE_ENV=test npm test -- --coverage", | ||
"test:watch": "cross-env NODE_ENV=test npm test -- --watch", | ||
"test": "cross-env NODE_ENV=test jest --config .jestrc.test.json --forceExit --runInBand", | ||
"test": "cross-env NODE_ENV=test vitest run", | ||
"typecheck": "tsc --build" | ||
}, | ||
"author": "Tobias Deekens <[email protected]>", | ||
|
@@ -61,14 +57,13 @@ | |
"@tsconfig/node18": "18.2.4", | ||
"@types/node": "20.16.13", | ||
"@types/semver": "7.5.8", | ||
"@vitest/coverage-v8": "2.1.5", | ||
"check-node-version": "4.2.1", | ||
"cross-env": "7.0.3", | ||
"husky": "9.0.11", | ||
"jest": "29.7.0", | ||
"jest-watch-typeahead": "2.2.2", | ||
"lint-staged": "15.2.10", | ||
"rimraf": "5.0.10", | ||
"ts-jest": "29.1.5", | ||
"typescript": "5.6.2" | ||
"typescript": "5.6.2", | ||
"vitest": "2.1.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
packages/metrics/src/create-gc-metrics/create-gc-metrics.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
packages/metrics/src/create-http-metrics/create-http-metrics.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
packages/metrics/src/create-request-recorder/create-request-recorder.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/metrics/src/end-measurement-from/end-measurement-from.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/metrics/src/normalizers/status-code/status-code.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.