Refactor test execution to use lage task runner (#5964)

This commit is contained in:
Matiss Janis Aboltins
2025-10-21 08:58:26 +02:00
committed by GitHub
parent 8019d9f61b
commit 57d01467ca
29 changed files with 275 additions and 36 deletions

View File

@@ -54,6 +54,6 @@
"scripts": {
"generate:icons": "rm src/icons/*/*.tsx; cd src/icons && svgr --template template.ts --index-template index-template.ts --typescript --expand-props start -d . .",
"test": "npm-run-all -cp 'test:*'",
"test:web": "ENV=web vitest -c vitest.web.config.ts"
"test:web": "ENV=web vitest --run -c vitest.web.config.ts"
}
}

View File

@@ -21,6 +21,12 @@ export default defineConfig({
environment: 'jsdom',
globals: true,
include: ['src/**/*.web.test.(js|jsx|ts|tsx)'],
poolOptions: {
threads: {
maxThreads: 2,
minThreads: 1,
},
},
},
resolve: {
alias: [