Add test runner and Vite module path resolver

This commit is contained in:
CPTProgrammer 2026-07-07 01:38:09 +08:00
parent e2a4de3f45
commit 3c8b52c238
No known key found for this signature in database
3 changed files with 1814 additions and 5 deletions

1806
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,8 @@
"build": "next build",
"start": "next start",
"lint": "eslint",
"lint:fix": "eslint --fix"
"lint:fix": "eslint --fix",
"test": "vitest"
},
"dependencies": {
"@ant-design/icons": "^6.3.2",
@ -19,6 +20,8 @@
"devDependencies": {
"@types/node": "26.1.0",
"eslint": "^10.6.0",
"typescript": "6.0.3"
"typescript": "6.0.3",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.1.10"
}
}

6
vitest.config.ts Normal file
View File

@ -0,0 +1,6 @@
import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
})