-
-
Notifications
You must be signed in to change notification settings - Fork 228
test: migrate to vitest #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
93014fb
test: migrate to vitest
merceyz fc0e3b1
deps: fix clipanion paths
merceyz dc66997
Merge branch 'main' into merceyz/test/vitest
merceyz 576928e
deps: update vitest
merceyz ddf3a10
Merge branch 'main' into merceyz/test/vitest
merceyz c855230
chore: use mts config file
merceyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -13,3 +13,5 @@ | |
|
|
||
| /shims | ||
| /coverage | ||
|
|
||
| /node_modules | ||
This file contains hidden or 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 @@ | ||
| diff --git a/lib/platform/package.json b/lib/platform/package.json | ||
| index 5ea9d43740d1bdb509612376c0e9ce91d20f8b20..08d4f7327dee5e605107a343d73b2254ed08ddb9 100644 | ||
| --- a/lib/platform/package.json | ||
| +++ b/lib/platform/package.json | ||
| @@ -1,4 +1,4 @@ | ||
| { | ||
| - "main": "./node", | ||
| + "main": "./node.js", | ||
| "browser": "./browser" | ||
| } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -18,12 +18,7 @@ | |
| "license": "MIT", | ||
| "packageManager": "[email protected]+sha224.934d21773e22af4b69a7032a2d3b4cb38c1f7c019624777cc9916b23", | ||
| "devDependencies": { | ||
| "@babel/core": "^7.14.3", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.14.0", | ||
| "@babel/preset-typescript": "^7.13.0", | ||
| "@jest/globals": "^29.0.0", | ||
| "@types/debug": "^4.1.5", | ||
| "@types/jest": "^29.0.0", | ||
| "@types/node": "^20.4.6", | ||
| "@types/proxy-from-env": "^1", | ||
| "@types/semver": "^7.1.0", | ||
|
|
@@ -32,13 +27,11 @@ | |
| "@yarnpkg/eslint-config": "^2.0.0", | ||
| "@yarnpkg/fslib": "^3.0.0-rc.48", | ||
| "@zkochan/cmd-shim": "^6.0.0", | ||
| "babel-plugin-dynamic-import-node": "^2.3.3", | ||
| "better-sqlite3": "^10.0.0", | ||
| "clipanion": "^3.0.1", | ||
| "clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch", | ||
| "debug": "^4.1.1", | ||
| "esbuild": "^0.21.0", | ||
| "eslint": "^8.57.0", | ||
| "jest": "^29.0.0", | ||
| "proxy-from-env": "^1.1.0", | ||
| "semver": "^7.5.2", | ||
| "supports-color": "^9.0.0", | ||
|
|
@@ -47,6 +40,7 @@ | |
| "typescript": "^5.3.3", | ||
| "undici": "^6.19.2", | ||
| "v8-compile-cache": "^2.3.0", | ||
| "vitest": "^2.0.3", | ||
| "which": "^4.0.0" | ||
| }, | ||
| "resolutions": { | ||
|
|
@@ -62,7 +56,7 @@ | |
| "postpack": "run clean", | ||
| "rimraf": "node -e 'for(let i=2;i<process.argv.length;i++)fs.rmSync(process.argv[i],{recursive:true,force:true});'", | ||
| "typecheck": "tsc --noEmit", | ||
| "test": "jest" | ||
| "test": "vitest" | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,13 @@ | ||
| import {defineConfig} from 'vitest/config'; | ||
|
|
||
| // eslint-disable-next-line arca/no-default-export | ||
| export default defineConfig({ | ||
| test: { | ||
| setupFiles: [`./tests/setupTests.ts`], | ||
| testTimeout: 120000, | ||
| retry: 2, | ||
| }, | ||
| esbuild: { | ||
| target: `node${process.versions.node}`, | ||
| }, | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.