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>
<script>
window.$docsify = {
nativeEmoji: true,
loadSidebar: true,
name: 'updux',
repo: '',

View File

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