resolve updux in tests

This commit is contained in:
Yanick Champoux 2023-08-30 12:10:13 -04:00
parent 787028995a
commit b65a032c7c
2 changed files with 7 additions and 1 deletions

View File

@ -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: '',

View File

@ -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',
},
}, },
}); });