fix: vitest path alias bug

This commit is contained in:
doprz
2024-02-22 23:25:08 -06:00
parent 29247d5dfa
commit e4a368fbb6
2 changed files with 6 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
/// <reference types="vitest" />
import { crx } from '@crxjs/vite-plugin'; import { crx } from '@crxjs/vite-plugin';
import react from '@vitejs/plugin-react-swc'; import react from '@vitejs/plugin-react-swc';
import { resolve } from 'path'; import { resolve } from 'path';
@@ -150,4 +151,9 @@ export default defineConfig({
// external: ['/@react-refresh'], // external: ['/@react-refresh'],
}, },
}, },
test: {
coverage: {
provider: 'v8',
},
},
}); });

View File

@@ -1,9 +0,0 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
provider: 'v8',
},
},
});