mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
23 lines
537 B
TypeScript
23 lines
537 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/__tests__/**/*.unit.spec.ts'],
|
|
testTimeout: 500,
|
|
coverage: {
|
|
provider: 'istanbul', // or 'c8'
|
|
reporter: ['lcov'],
|
|
reportsDirectory: '../../../.coverage/global',
|
|
},
|
|
/**
|
|
* Custom handler for console.log in tests.
|
|
*
|
|
* Return `false` to ignore the log.
|
|
*/
|
|
onConsoleLog(log, type) {
|
|
console.warn(`Unexpected ${type} log`, log);
|
|
throw new Error(log);
|
|
},
|
|
},
|
|
});
|