Skip to content

Commit

Permalink
ignore lib files when running vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Jun 16, 2024
1 parent ec49a13 commit b676922
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"python.analysis.typeCheckingMode": "basic"
"python.analysis.typeCheckingMode": "basic",
"vitest.disableWorkspaceWarning": true
}
2 changes: 1 addition & 1 deletion shared/tsconfig.shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"baseUrl": ".",
"declaration": true,
"noUncheckedIndexedAccess": true,
// "types": ["node", "vitest/global"],
"types": ["node", "vitest/globals"],
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"noImplicitReturns": true
Expand Down
10 changes: 9 additions & 1 deletion shared/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
globals: true
globals: true,
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/lib/**"
]
}
});

0 comments on commit b676922

Please sign in to comment.