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