Skip to content

Commit

Permalink
🐛 fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 12, 2023
1 parent 8a71cc0 commit 45c831d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
],
"scripts": {
"build": "vite build",
"ci": "npm run lint && npm run type-check",
"dev": "vite",
"dev:sd": "cd ../../ && ./webui.sh",
"i18n": "lobe-i18n",
Expand All @@ -36,7 +37,9 @@
"prettier": "prettier -c --write \"**/**\"",
"release": "semantic-release",
"start": "npm run dev",
"test": "npm run type-check",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:update": "vitest -u",
"type-check": "tsc --noEmit"
},
"lint-staged": {
Expand Down Expand Up @@ -77,6 +80,7 @@
"@types/semver": "^7.5.1",
"@types/styled-components": "^5",
"@vitejs/plugin-react": "^4",
"@vitest/coverage-v8": "latest",
"ahooks": "^3",
"antd": "^5",
"antd-style": "latest",
Expand All @@ -89,6 +93,7 @@
"husky": "^8",
"i18next": "^23",
"i18next-http-backend": "^2.2.2",
"jsdom": "^22",
"lint-staged": "^14",
"lodash-es": "^4",
"lucide-react": "latest",
Expand All @@ -114,6 +119,7 @@
"terser": "^5",
"typescript": "^5",
"vite": "^4",
"vitest": "latest",
"zustand": "^4.4.1",
"zustand-utils": "^1.3.1"
},
Expand Down
14 changes: 14 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config';

import { name } from './package.json';

export default defineConfig({
test: {
alias: {
'@': './src',
[name]: './src',
},
environment: 'jsdom',
globals: true,
},
});

0 comments on commit 45c831d

Please sign in to comment.