diff --git a/index.ts b/index.ts index 38b9598f2..eccf8a2fb 100755 --- a/index.ts +++ b/index.ts @@ -348,24 +348,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 5798b2de0..bfe78252f 100644 --- a/template/base/package.json +++ b/template/base/package.json @@ -2,6 +2,7 @@ "private": true, "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 61db75720..87cad189b 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.3.8" diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 77d5a5062..88b052abc 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.5.1", diff --git a/template/config/nightwatch-ct/package.json b/template/config/nightwatch-ct/package.json index 9299618bf..c31361668 100644 --- a/template/config/nightwatch-ct/package.json +++ b/template/config/nightwatch-ct/package.json @@ -1,6 +1,7 @@ { "scripts": { - "test:unit": "nightwatch src/components/**/__tests__/*" + "test:unit": "nightwatch src/components/**/__tests__/*", + "test": "npm run test:unit" }, "dependencies": { "vue": "^3.3.8" diff --git a/template/config/nightwatch/package.json b/template/config/nightwatch/package.json index a77d512d8..88fd5539b 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.3.2", diff --git a/template/config/playwright/package.json b/template/config/playwright/package.json index a66b93aaa..1aa817e4a 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.40.0" diff --git a/template/config/vitest/package.json b/template/config/vitest/package.json index a87f97253..36b8dd9bd 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.3.8"