diff --git a/index.ts b/index.ts index f552cfd82..08ccadc10 100755 --- a/index.ts +++ b/index.ts @@ -372,24 +372,24 @@ async function init() { if (needsPinia) { render('config/pinia') } - if (needsVitest) { - render('config/vitest') - } if (needsCypress) { render('config/cypress') } - if (needsCypressCT) { - render('config/cypress-ct') - } if (needsNightwatch) { render('config/nightwatch') } - if (needsNightwatchCT) { - render('config/nightwatch-ct') - } if (needsPlaywright) { render('config/playwright') } + if (needsVitest) { + render('config/vitest') + } + if (needsCypressCT) { + render('config/cypress-ct') + } + if (needsNightwatchCT) { + render('config/nightwatch-ct') + } if (needsTypeScript) { render('config/typescript') diff --git a/template/base/package.json b/template/base/package.json index d30724e61..289f591de 100644 --- a/template/base/package.json +++ b/template/base/package.json @@ -3,6 +3,7 @@ "type": "module", "scripts": { "dev": "vite", + "start": "npm run dev", "build": "vite build", "preview": "vite preview" }, diff --git a/template/config/cypress-ct/package.json b/template/config/cypress-ct/package.json index 99944d23d..eff53e911 100644 --- a/template/config/cypress-ct/package.json +++ b/template/config/cypress-ct/package.json @@ -1,7 +1,8 @@ { "scripts": { "test:unit": "cypress run --component", - "test:unit:dev": "cypress open --component" + "test:unit:dev": "cypress open --component", + "test": "npm run test:unit" }, "dependencies": { "vue": "^3.4.27" diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 02634ae57..420efe056 100644 --- a/template/config/cypress/package.json +++ b/template/config/cypress/package.json @@ -1,7 +1,8 @@ { "scripts": { "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", - "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'" + "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'", + "test": "npm run test:e2e" }, "devDependencies": { "cypress": "^13.10.0", diff --git a/template/config/nightwatch-ct/package.json b/template/config/nightwatch-ct/package.json index 907a54827..defdb4ecf 100644 --- a/template/config/nightwatch-ct/package.json +++ b/template/config/nightwatch-ct/package.json @@ -1,6 +1,7 @@ { "scripts": { - "test:unit": "nightwatch src/**/__tests__/*" + "test:unit": "nightwatch src/**/__tests__/*", + "test": "npm run test:unit" }, "dependencies": { "vue": "^3.4.27" diff --git a/template/config/nightwatch/package.json b/template/config/nightwatch/package.json index 1ba221d80..2408db983 100644 --- a/template/config/nightwatch/package.json +++ b/template/config/nightwatch/package.json @@ -1,6 +1,7 @@ { "scripts": { - "test:e2e": "nightwatch tests/e2e/*" + "test:e2e": "nightwatch tests/e2e/*", + "test": "npm run test:e2e" }, "devDependencies": { "nightwatch": "^3.6.3", diff --git a/template/config/playwright/package.json b/template/config/playwright/package.json index d4e4fcb6e..f417f7a3a 100644 --- a/template/config/playwright/package.json +++ b/template/config/playwright/package.json @@ -1,6 +1,7 @@ { "scripts": { - "test:e2e": "playwright test" + "test:e2e": "playwright test", + "test": "npm run test:e2e" }, "devDependencies": { "@playwright/test": "^1.44.1" diff --git a/template/config/vitest/package.json b/template/config/vitest/package.json index d85e08085..923801070 100644 --- a/template/config/vitest/package.json +++ b/template/config/vitest/package.json @@ -1,6 +1,7 @@ { "scripts": { - "test:unit": "vitest" + "test:unit": "vitest", + "test": "npm run test:unit" }, "dependencies": { "vue": "^3.4.27" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy