Skip to content

Commit

Permalink
chore: fix vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 4, 2023
1 parent 5b1c1ca commit c6798c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 104 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"jiti": "cross-env JITI_DEBUG=1 JITI_CACHE=false JITI_REQUIRE_CACHE=false ./bin/jiti.js",
"jiti:legacy": "cross-env JITI_DEBUG=1 npx node@12 ./bin/jiti.js",
"lint": "eslint --ext .ts,.js . && prettier -c src lib test stubs",
"lint:fix": "eslint --fix --ext .ts,.js . && prettier -w src lib test stubs",
"release": "pnpm build && pnpm test && changelogen --release --push && npm publish",
"test": "pnpm lint && vitest run --coverage"
},
Expand All @@ -41,7 +42,7 @@
"@types/object-hash": "^3.0.2",
"@types/resolve": "^1.20.2",
"@types/semver": "^7.5.0",
"@vitest/coverage-c8": "^0.32.4",
"@vitest/coverage-v8": "^0.32.4",
"acorn": "^8.9.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-parameter-decorator": "^1.0.16",
Expand Down
124 changes: 24 additions & 100 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
reporter: ["text", "clover", "json"],
},
exclude: ["**/test.{ts,mjs,cjs,js}", "node_modules/**/*"],
},
});

0 comments on commit c6798c6

Please sign in to comment.