Skip to content

Commit

Permalink
chore: fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Dec 15, 2023
1 parent 82622a1 commit 87ac78e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
},
"dependencies": {
"@ctrl/tinycolor": "^4",
"@rc-component/color-picker": "^1.4.1"
"@rc-component/color-picker": "^1.4.1",
"vite-tsconfig-paths": "^4.2.2"
},
"devDependencies": {
"@commitlint/cli": "^17",
Expand Down
55 changes: 53 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
import { name } from './package.json';

export default defineConfig({
plugins: [tsconfigPaths()],
test: {
alias: {
'@': './src',
[name]: './src',
},
coverage: {
reporter: ['text', 'text-summary', 'json', 'lcov'],
include: ['src/**/*'],
Expand Down

0 comments on commit 87ac78e

Please sign in to comment.