Files
wallet/vitest.config.js
2023-05-10 08:40:25 +00:00

30 lines
848 B
JavaScript

import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: 'src/**/*.spec.{ts,tsx}',
coverage: {
provider: 'istanbul',
reporter: ['text', 'json-summary', 'json', 'html'],
reportsDirectory: './coverage',
},
globals: true,
environment: 'node',
setupFiles: './tests-legacy/unit-test.setup.js',
deps: { interopDefault: true },
silent: false,
},
resolve: {
alias: {
'@shared': path.resolve('./src/shared'),
'@background': path.resolve('./src/background'),
'@content-scripts': path.resolve('./src/content-scripts'),
'@inpage': path.resolve('./src/inpage'),
'@app': path.resolve('./src/app'),
'@tests': path.resolve('./tests'),
'@tests-legacy': path.resolve('./tests-legacy'),
},
},
});