From 336d371ceb4deccd0cf77cd8521ad4a128884617 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Thu, 27 Jun 2024 15:03:29 -0700 Subject: [PATCH] fix(testing): only add atomizer label for parent atomizer task (#26740) ## Current Behavior Atomizer is shown for all split targets ## Expected Behavior Atomizer is shown for only the parent atomizer target. ## Related Issue(s) Fixes # --- packages/cypress/src/plugins/plugin.spec.ts | 1 - packages/cypress/src/plugins/plugin.ts | 1 - packages/jest/src/plugins/plugin.spec.ts | 1 - packages/jest/src/plugins/plugin.ts | 1 - packages/playwright/src/plugins/plugin.spec.ts | 2 -- packages/playwright/src/plugins/plugin.ts | 1 - typedoc-theme/jest.config.ts | 2 +- 7 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/cypress/src/plugins/plugin.spec.ts b/packages/cypress/src/plugins/plugin.spec.ts index 76249091e4c3e..aced265f5ef53 100644 --- a/packages/cypress/src/plugins/plugin.spec.ts +++ b/packages/cypress/src/plugins/plugin.spec.ts @@ -393,7 +393,6 @@ describe('@nx/cypress/plugin', () => { ], }, }, - "nonAtomizedTarget": "e2e", "technologies": [ "cypress", ], diff --git a/packages/cypress/src/plugins/plugin.ts b/packages/cypress/src/plugins/plugin.ts index 1131a816862a5..d43489cf500f6 100644 --- a/packages/cypress/src/plugins/plugin.ts +++ b/packages/cypress/src/plugins/plugin.ts @@ -279,7 +279,6 @@ async function buildCypressTargets( metadata: { technologies: ['cypress'], description: `Runs Cypress Tests in ${relativeSpecFilePath} in CI`, - nonAtomizedTarget: options.targetName, help: { command: `${pmc.exec} cypress run --help`, example: { diff --git a/packages/jest/src/plugins/plugin.spec.ts b/packages/jest/src/plugins/plugin.spec.ts index 2f7a62bbe84c6..254565a0822b4 100644 --- a/packages/jest/src/plugins/plugin.spec.ts +++ b/packages/jest/src/plugins/plugin.spec.ts @@ -234,7 +234,6 @@ describe('@nx/jest/plugin', () => { }, }, }, - "nonAtomizedTarget": "test", "technologies": [ "jest", ], diff --git a/packages/jest/src/plugins/plugin.ts b/packages/jest/src/plugins/plugin.ts index 0d915681b9c9c..6c86cbb151dfa 100644 --- a/packages/jest/src/plugins/plugin.ts +++ b/packages/jest/src/plugins/plugin.ts @@ -280,7 +280,6 @@ async function buildJestTargets( metadata: { technologies: ['jest'], description: `Run Jest Tests in ${relativePath}`, - nonAtomizedTarget: options.targetName, help: { command: `${pmc.exec} jest --help`, example: { diff --git a/packages/playwright/src/plugins/plugin.spec.ts b/packages/playwright/src/plugins/plugin.spec.ts index c6f4f1b6a9d2a..f6740f0a17297 100644 --- a/packages/playwright/src/plugins/plugin.spec.ts +++ b/packages/playwright/src/plugins/plugin.spec.ts @@ -348,7 +348,6 @@ describe('@nx/playwright/plugin', () => { }, }, }, - "nonAtomizedTarget": "e2e", "technologies": [ "playwright", ], @@ -384,7 +383,6 @@ describe('@nx/playwright/plugin', () => { }, }, }, - "nonAtomizedTarget": "e2e", "technologies": [ "playwright", ], diff --git a/packages/playwright/src/plugins/plugin.ts b/packages/playwright/src/plugins/plugin.ts index dc5e84b121db6..9f64ffc8a6513 100644 --- a/packages/playwright/src/plugins/plugin.ts +++ b/packages/playwright/src/plugins/plugin.ts @@ -226,7 +226,6 @@ async function buildPlaywrightTargets( metadata: { technologies: ['playwright'], description: `Runs Playwright Tests in ${relativeSpecFilePath} in CI`, - nonAtomizedTarget: options.targetName, help: { command: `${pmc.exec} playwright test --help`, example: { diff --git a/typedoc-theme/jest.config.ts b/typedoc-theme/jest.config.ts index 79217ac523e8e..fb5ca8d7065ad 100644 --- a/typedoc-theme/jest.config.ts +++ b/typedoc-theme/jest.config.ts @@ -1,4 +1,4 @@ -const nxPreset = require('@nx/jest/preset').default; +const nxPreset = require('../node_modules/@nx/jest/preset').default; /* eslint-disable */ export default {