Set up Vitest with happy-dom, mock Nuxt auto-imports via #imports alias. Add tests for: inventory-types validators (9), apiHelpers (10), modelUtils (18), useConfirm (8), useToast (9). All 54 tests pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "nuxt-app",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "nuxt build",
|
|
"dev": "nuxt dev",
|
|
"generate": "nuxt generate",
|
|
"preview": "nuxt preview",
|
|
"postinstall": "nuxt prepare",
|
|
"start": "nuxt start",
|
|
"lint": "eslint . --ext .js,.ts,.vue",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@nuxtjs/tailwindcss": "^6.14.0",
|
|
"@tailwindcss/vite": "^4.1.11",
|
|
"daisyui": "^5.0.48",
|
|
"nuxt": "^4.0.1",
|
|
"tailwindcss": "^4.1.11",
|
|
"vue": "^3.5.17",
|
|
"vue-router": "^4.5.1"
|
|
},
|
|
"devDependencies": {
|
|
"@iconify-json/lucide": "^1.2.68",
|
|
"@nuxt/eslint-config": "^1.9.0",
|
|
"@rushstack/eslint-patch": "^1.12.0",
|
|
"@types/node": "^25.2.1",
|
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
"@typescript-eslint/parser": "^8.44.1",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"eslint": "^9.36.0",
|
|
"eslint-plugin-vue": "^10.5.0",
|
|
"happy-dom": "^20.5.3",
|
|
"typescript": "^5.7.3",
|
|
"unplugin-icons": "^0.19.3",
|
|
"vitest": "^4.0.18",
|
|
"vue-eslint-parser": "^10.2.0"
|
|
}
|
|
}
|