Merge pull request #2853 from mikiher/nuxt-unit-tests

Add client component testing framework and tests
This commit is contained in:
advplyr 2024-04-30 17:32:24 -05:00 committed by GitHub
commit 7929f3dc42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1696 additions and 28 deletions

View file

@ -9,7 +9,10 @@
"dev2": "nuxt --hostname localhost --port 1337",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
"generate": "nuxt generate",
"test": "npm run compile-tailwind && cypress run --component --browser chrome",
"test-visually": "npm run compile-tailwind && cypress open --component --browser chrome",
"compile-tailwind": "tailwindcss -i ./assets/tailwind.css -o ./cypress/support/tailwind.compiled.css"
},
"author": "advplyr",
"license": "ISC",
@ -33,6 +36,7 @@
"devDependencies": {
"@nuxtjs/pwa": "^3.3.5",
"autoprefixer": "^10.4.7",
"cypress": "^13.7.3",
"postcss": "^8.3.6",
"tailwindcss": "^3.4.1"
}