2022-06-05 11:07:10 +12:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
2022-07-04 01:33:18 +12:00
|
|
|
exclude: ['**/node_modules', '**/dist', '.idea', '.git', '.cache'],
|
2022-06-05 11:07:10 +12:00
|
|
|
passWithNoTests: true,
|
|
|
|
coverage: {
|
|
|
|
enabled: true,
|
2022-07-04 01:33:18 +12:00
|
|
|
all: true,
|
2022-07-05 22:32:05 +12:00
|
|
|
reporter: ['text', 'lcov', 'cobertura'],
|
2022-08-17 19:44:21 +12:00
|
|
|
provider: 'c8',
|
2022-07-04 01:33:18 +12:00
|
|
|
include: ['src'],
|
2022-07-18 04:51:03 +12:00
|
|
|
exclude: [
|
|
|
|
// All ts files that only contain types, due to ALL
|
|
|
|
'**/*.{interface,type,d}.ts',
|
|
|
|
// All index files that *should* only contain exports from other files
|
|
|
|
'**/index.{js,ts}',
|
2023-02-20 07:59:35 +13:00
|
|
|
// All exports files that make subpackages available as submodules
|
|
|
|
'**/exports/*.{js,ts}',
|
2022-07-18 04:51:03 +12:00
|
|
|
],
|
2022-06-05 11:07:10 +12:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|