Files
speckle-automate-github-action/vite.config.ts
T
Iain Sproat 1fceda4724 test(coverage): 100% test coverage & refactor to vitest and msw (#6)
* chore(refactor): tests use vitest and msw
* fix(directory): Ensure filenames conform to eslint requirements
* chore(yarn): Specify node engine version
* fix(yarn): use the proper nodelinker
* fix(GitHub workflow): yarn install with caching
* docs(README): update to match changes

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2023-03-23 15:37:32 +00:00

38 lines
797 B
TypeScript

import { configDefaults, defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
resolve: {
mainFields: ['module']
},
test: {
exclude: [...configDefaults.exclude, 'lib/**', 'dist/**'],
coverage: {
reporter: ['lcov', 'text', 'json', 'html'],
provider: 'istanbul',
exclude: [
'src/tests/**/*',
'src/**/*.spec.ts',
'src/**/*.spec.tsx',
'lib/**/*',
'dist/**/*',
'**/*.cjs',
'**/*.mjs',
'**/*.js'
],
lines: 95,
functions: 95,
branches: 95,
statements: 95,
resolve: {
alias: {
'@': path.resolve(__dirname, './src/')
}
},
define: {
'import.meta.vitest': 'undefined'
}
}
}
})