-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test(image-utils): replace `jest` with `vitest` * test(image-utils): replace `jest` API with `vitest` API * chore: re-sync pnpm lockfile * make `test/arbitraries` a module and exclude `.mts` from build * remove outdated jest config
- Loading branch information
1 parent
5e5d9f5
commit 2ca164d
Showing
14 changed files
with
48 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bin | ||
build | ||
coverage | ||
jest.config.js | ||
vitest.config.mts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
"lint": "pnpm type-check && eslint .", | ||
"lint:fix": "pnpm type-check && eslint . --fix", | ||
"test": "is-ci test:ci test:watch", | ||
"test:ci": "jest --coverage --ci --reporters=default --reporters=jest-junit --maxWorkers=6", | ||
"test:coverage": "jest --coverage", | ||
"test:watch": "jest --watch" | ||
"test:ci": "vitest run --coverage", | ||
"test:coverage": "vitest --coverage", | ||
"test:watch": "vitest" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
|
@@ -32,23 +32,19 @@ | |
"tmp": "^0.2.1" | ||
}, | ||
"devDependencies": { | ||
"@jest/types": "^29.6.1", | ||
"@types/debug": "4.1.8", | ||
"@types/jest": "^29.5.3", | ||
"@types/jest-image-snapshot": "^6.4.0", | ||
"@types/node": "20.16.0", | ||
"@types/pdfjs-dist": "2.1.3", | ||
"@types/pixelmatch": "^5.2.6", | ||
"@types/tmp": "0.2.4", | ||
"@vitest/coverage-istanbul": "^2.1.8", | ||
"esbuild": "0.21.2", | ||
"esbuild-runner": "2.2.2", | ||
"eslint-plugin-vx": "workspace:*", | ||
"fast-check": "2.23.2", | ||
"is-ci-cli": "2.2.0", | ||
"jest": "^29.6.2", | ||
"jest-junit": "^16.0.0", | ||
"jest-watch-typeahead": "^2.2.2", | ||
"lint-staged": "11.0.0", | ||
"ts-jest": "29.1.1" | ||
"vitest": "^2.1.8" | ||
} | ||
} |
9 changes: 5 additions & 4 deletions
9
libs/image-utils/src/crop.test.ts → libs/image-utils/src/crop.test.mts
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
.../image-utils/src/jest_match_image.test.ts → ...image-utils/src/jest_match_image.test.mts
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
libs/image-utils/src/numeric.test.ts → libs/image-utils/src/numeric.test.mts
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
5 changes: 3 additions & 2 deletions
5
libs/image-utils/test/arbitraries.test.ts → libs/image-utils/test/arbitraries.test.mts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from '../../vitest.config.shared.mjs'; | ||
|
||
export default defineConfig({ | ||
test: { | ||
setupFiles: ['test/setupTests.ts'], | ||
coverage: { | ||
exclude: ['src/jest_pdf_snapshot.ts', 'src/cli/pdf_to_images.ts'], | ||
}, | ||
}, | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.