fix: vitest path alias bug
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/// <reference types="vitest" />
|
||||
import { crx } from '@crxjs/vite-plugin';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
import { resolve } from 'path';
|
||||
@@ -150,4 +151,9 @@ export default defineConfig({
|
||||
// external: ['/@react-refresh'],
|
||||
},
|
||||
},
|
||||
test: {
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user