[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vitest. An vitest environment with support for testing code that needs a Nuxt runtime environment
nuxt nuxt-module testing unit-testing vitest
0

Configure Feed

Select the types of activity you want to include in your feed.

nuxt-vitest / playground / package.json
931 B 32 lines
1{ 2 "private": true, 3 "type": "module", 4 "scripts": { 5 "build": "nuxt build", 6 "dev": "nuxt dev", 7 "generate": "nuxt generate", 8 "preview": "nuxt preview", 9 "test:dev": "NUXT_VITEST_DEV_TEST=true nuxt dev --no-fork", 10 "test:unit": "vitest", 11 "test:types": "nuxi prepare && vue-tsc --noEmit", 12 "test:jsdom": "VITEST_DOM_ENV=jsdom pnpm test:unit --run", 13 "test:happy-dom": "VITEST_DOM_ENV=happy-dom pnpm test:unit --run", 14 "test": "pnpm test:happy-dom && pnpm test:jsdom && pnpm test:dev && pnpm test:types" 15 }, 16 "devDependencies": { 17 "@nuxt/devtools": "1.0.5", 18 "@testing-library/vue": "8.0.1", 19 "happy-dom": "12.1.2", 20 "jsdom": "22.1.0", 21 "nuxt": "3.7.4", 22 "nuxt-vitest": "0.11.5", 23 "typescript": "5.2.2", 24 "vitest": "0.33.0", 25 "vitest-environment-nuxt": "0.11.5", 26 "vue-tsc": "1.8.19" 27 }, 28 "version": "0.10.2", 29 "dependencies": { 30 "idb-keyval": "^6.2.1" 31 } 32}