-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: convert type tests to vitest syntax (#61)
* test: convert type tests to vitest syntax * lint * enable tests --------- Co-authored-by: Pooya Parsa <[email protected]>
- Loading branch information
Showing
7 changed files
with
141 additions
and
133 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 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ types | |
*.log* | ||
*.conf* | ||
*.env* | ||
tsconfig.vitest-temp.json |
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 |
---|---|---|
|
@@ -21,22 +21,22 @@ | |
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "vitest dev", | ||
"dev": "vitest dev --typecheck", | ||
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test", | ||
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w", | ||
"prepack": "pnpm run build", | ||
"release": "pnpm test && changelogen --release --push && npm publish", | ||
"test": "pnpm lint && vitest run --coverage" | ||
"test": "pnpm lint && vitest run --typecheck --coverage" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.9.0", | ||
"@vitest/coverage-v8": "^0.34.6", | ||
"@vitest/coverage-v8": "^1.0.0-beta.4", | ||
"eslint": "^8.53.0", | ||
"eslint-config-unjs": "^0.2.1", | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.2.2", | ||
"unbuild": "^2.0.0", | ||
"vitest": "^0.34.6" | ||
"vitest": "^1.0.0-beta.4" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.