mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 09:34:37 +08:00
30 lines
848 B
JavaScript
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'),
|
|
},
|
|
},
|
|
});
|