resolve updux in tests
This commit is contained in:
parent
787028995a
commit
b65a032c7c
@ -12,7 +12,6 @@
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
nativeEmoji: true,
|
||||
loadSidebar: true,
|
||||
name: 'updux',
|
||||
repo: '',
|
||||
|
@ -1,8 +1,15 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
isolate: false,
|
||||
alias: {
|
||||
updux: __dirname + '/src/index.ts',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user