Skip to content

Commit

Permalink
chore: fix jest for global usage
Browse files Browse the repository at this point in the history
  • Loading branch information
capt-nemo429 committed Dec 6, 2022
1 parent 03ba9f0 commit f52d9a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.ts": "${capture}.spec.ts, ${capture}.js"
},
"jest.jestCommandLine": "pnpm --filter core run test:unit"
}
}
8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
coveragePathIgnorePatterns: ["/node_modules/", "./src/tests"],
testPathIgnorePatterns: ["/node_modules/", "/dist/", "/coverage/"],
collectCoverage: false,
testEnvironment: "node",
preset: "ts-jest",
roots: ["./packages"]
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"license": "MIT",
"scripts": {
"ver:stable": "standard-version",
"ver:alpha": "standard-version --dry-run --prerelease alpha"
"ver:alpha": "standard-version --dry-run --prerelease alpha",
"clear": "pnpm -r exec rm -rf dist"
},
"devDependencies": {
"@noble/hashes": "^1.1.3",
Expand Down

0 comments on commit f52d9a4

Please sign in to comment.