1fceda4724
* 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>
38 lines
797 B
TypeScript
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'
|
|
}
|
|
}
|
|
}
|
|
})
|