test: root vitest projects across packages
This commit is contained in:
1 parent
021dfcb66b
commit
d51180348c
1 file changed
+28
@@ -0,0 +1,28 @@
|
|||||||
|
import { defineConfig } from 'vitest/config'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
test: {
|
||||||
|
projects: [
|
||||||
|
{
|
||||||
|
test: {
|
||||||
|
name: 'unit',
|
||||||
|
include: ['packages/*/test/unit/**/*.test.ts']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: {
|
||||||
|
name: 'integration',
|
||||||
|
include: ['packages/*/test/integration/**/*.test.ts'],
|
||||||
|
testTimeout: 120_000,
|
||||||
|
hookTimeout: 240_000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
coverage: {
|
||||||
|
provider: 'v8',
|
||||||
|
include: ['packages/*/src/**'],
|
||||||
|
exclude: ['packages/*/src/index.ts'],
|
||||||
|
thresholds: { lines: 90, functions: 90 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
Reference in new issue
Block a user