From 70eb1124a4cf1b6350eb95bef3b94768d0cbdc0c Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Wed, 15 May 2024 13:50:10 -0500 Subject: [PATCH] test: move test to app folder --- apps/nextjs/package.json | 5 +---- playwright.config.ts => apps/nextjs/playwright.config.ts | 0 {test => apps/nextjs/test}/vote.e2e-spec.ts | 0 package.json | 1 - pnpm-lock.yaml | 8 ++------ 5 files changed, 3 insertions(+), 11 deletions(-) rename playwright.config.ts => apps/nextjs/playwright.config.ts (100%) rename {test => apps/nextjs/test}/vote.e2e-spec.ts (100%) diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json index 67003ce..e7108e4 100644 --- a/apps/nextjs/package.json +++ b/apps/nextjs/package.json @@ -12,10 +12,7 @@ "start": "next start", "lint": "next lint", "test": "vitest", - "test:e2e": "playwright test", - "serve": "sh ./.bin/01-serve.sh", - "seed": "sh ./.bin/02-seed.sh", - "stop": "sh ./.bin/03-stop.sh" + "test:e2e": "playwright test" }, "dependencies": { "@libs/backend": "workspace:*", diff --git a/playwright.config.ts b/apps/nextjs/playwright.config.ts similarity index 100% rename from playwright.config.ts rename to apps/nextjs/playwright.config.ts diff --git a/test/vote.e2e-spec.ts b/apps/nextjs/test/vote.e2e-spec.ts similarity index 100% rename from test/vote.e2e-spec.ts rename to apps/nextjs/test/vote.e2e-spec.ts diff --git a/package.json b/package.json index ce20b42..a38f483 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "stop": "sh ./.bin/03-stop.sh" }, "devDependencies": { - "@playwright/test": "1.44.0", "@types/node": "18.7.16", "typescript": "5.4.5", "vitest": "1.6.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d674c8..e3b855d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ importers: .: devDependencies: - '@playwright/test': - specifier: 1.44.0 - version: 1.44.0 '@types/node': specifier: 18.7.16 version: 18.7.16 @@ -122,7 +119,7 @@ importers: version: 4.9.1 next: specifier: 14.2.3 - version: 14.2.3(@playwright/test@1.44.0)(react-dom@18.2.0)(react@18.2.0) + version: 14.2.3(react-dom@18.2.0)(react@18.2.0) sharp: specifier: 0.33.3 version: 0.33.3 @@ -4473,7 +4470,7 @@ packages: - babel-plugin-macros dev: false - /next@14.2.3(@playwright/test@1.44.0)(react-dom@18.2.0)(react@18.2.0): + /next@14.2.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==} engines: {node: '>=18.17.0'} hasBin: true @@ -4492,7 +4489,6 @@ packages: optional: true dependencies: '@next/env': 14.2.3 - '@playwright/test': 1.44.0 '@swc/helpers': 0.5.5 busboy: 1.6.0 caniuse-lite: 1.0.30001618