From d14a927e84025a8acf6bc57ef64f4867f0bd28c7 Mon Sep 17 00:00:00 2001 From: Matias Apolonio Date: Thu, 2 Nov 2023 16:42:24 +0000 Subject: [PATCH] renamed generated src directory to 'tests' --- package.json | 2 +- packages/nx-playwright/package.json | 2 +- .../generators/project/files/{src => tests}/app.spec.ts__tmpl__ | 0 packages/nx-playwright/src/generators/project/generator.ts | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) rename packages/nx-playwright/src/generators/project/files/{src => tests}/app.spec.ts__tmpl__ (100%) diff --git a/package.json b/package.json index fb28826..2d9024e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mands/nx-plugins", - "version": "0.6.3", + "version": "1.0.0", "description": "Nx plugins by M&S engineering", "license": "MIT", "private": false, diff --git a/packages/nx-playwright/package.json b/packages/nx-playwright/package.json index 546647f..337c2e3 100644 --- a/packages/nx-playwright/package.json +++ b/packages/nx-playwright/package.json @@ -1,6 +1,6 @@ { "name": "@mands/nx-playwright", - "version": "0.6.3", + "version": "1.0.0", "license": "MIT", "publishConfig": { "registry": "https://registry.npmjs.org" diff --git a/packages/nx-playwright/src/generators/project/files/src/app.spec.ts__tmpl__ b/packages/nx-playwright/src/generators/project/files/tests/app.spec.ts__tmpl__ similarity index 100% rename from packages/nx-playwright/src/generators/project/files/src/app.spec.ts__tmpl__ rename to packages/nx-playwright/src/generators/project/files/tests/app.spec.ts__tmpl__ diff --git a/packages/nx-playwright/src/generators/project/generator.ts b/packages/nx-playwright/src/generators/project/generator.ts index 7ed26fd..97aea5f 100644 --- a/packages/nx-playwright/src/generators/project/generator.ts +++ b/packages/nx-playwright/src/generators/project/generator.ts @@ -39,6 +39,7 @@ export default async function (host: Tree, options: NxPlaywrightGeneratorSchema) e2eFolder: normalizedOptions.projectRoot, devServerTarget: options.project ? `${options.project}:serve` : undefined, packageRunner: options.packageRunner ?? generatorSchema.properties.packageRunner.default, + path: './tests', }, configurations: { axe: options.includeAxe