Skip to content

Commit

Permalink
test: ✅ 修复测试错误
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Jun 26, 2024
1 parent 56df029 commit 65fb0c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Manga/handleComicData.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @vitest-environment jsdom

import { beforeEach, expect, it } from 'vitest';

import { handleComicData, autoCloseFill } from './handleComicData';
Expand Down
12 changes: 12 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

import { defineConfig } from 'vitest/config';

const __dirname = dirname(fileURLToPath(import.meta.url));

export default defineConfig({
test: {
alias: { helper: resolve(__dirname, './src/helper') },
},
});

0 comments on commit 65fb0c3

Please sign in to comment.