Skip to content

Commit da1abb0

Browse files
author
Lars-Erik Roald
committed
vitest config exclude
1 parent 9a71420 commit da1abb0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"url": "https://github.com/sponsors/lroal"
5050
},
5151
"scripts": {
52-
"test": "vitest run \"**/!(*.deno|*.bun).test.js\" --threads=false",
52+
"test": "vitest run --threads=false",
5353
"test:bun": "bun test --timeout=30000 ./tests/*.bun.test.js",
5454
"test:deno": "deno test --allow-all --unstable *.deno.test.js",
5555
"test:all": "echo 'Running Node.js tests...' && npm run test:node && echo 'Running Bun tests...' && npm run test:bun && echo 'Running Deno tests...' && npm run test:deno && echo 'All tests completed!'",

vitest.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// vitest.config.js
2+
/** @type {import('vitest').UserConfig} */
3+
module.exports = {
4+
test: {
5+
// Copied baseline excludes (since configDefaults is ESM-only)
6+
exclude: [
7+
'**/node_modules/**',
8+
'**/dist/**',
9+
'**/cypress/**',
10+
'**/.{idea,git,cache}/**',
11+
'**/coverage/**',
12+
'**/*.deno.test.js',
13+
'**/*.bun.test.js',
14+
],
15+
threads: false,
16+
},
17+
};

0 commit comments

Comments
 (0)