fix(testing): only add atomizer label for parent atomizer task (#26740)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

Atomizer is shown for all split targets

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Atomizer is shown for only the parent atomizer target.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
This commit is contained in:
Jason Jean 2024-06-27 15:03:29 -07:00 committed by GitHub
parent 5364e27d68
commit 336d371ceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1 additions and 8 deletions

View File

@ -393,7 +393,6 @@ describe('@nx/cypress/plugin', () => {
], ],
}, },
}, },
"nonAtomizedTarget": "e2e",
"technologies": [ "technologies": [
"cypress", "cypress",
], ],

View File

@ -279,7 +279,6 @@ async function buildCypressTargets(
metadata: { metadata: {
technologies: ['cypress'], technologies: ['cypress'],
description: `Runs Cypress Tests in ${relativeSpecFilePath} in CI`, description: `Runs Cypress Tests in ${relativeSpecFilePath} in CI`,
nonAtomizedTarget: options.targetName,
help: { help: {
command: `${pmc.exec} cypress run --help`, command: `${pmc.exec} cypress run --help`,
example: { example: {

View File

@ -234,7 +234,6 @@ describe('@nx/jest/plugin', () => {
}, },
}, },
}, },
"nonAtomizedTarget": "test",
"technologies": [ "technologies": [
"jest", "jest",
], ],

View File

@ -280,7 +280,6 @@ async function buildJestTargets(
metadata: { metadata: {
technologies: ['jest'], technologies: ['jest'],
description: `Run Jest Tests in ${relativePath}`, description: `Run Jest Tests in ${relativePath}`,
nonAtomizedTarget: options.targetName,
help: { help: {
command: `${pmc.exec} jest --help`, command: `${pmc.exec} jest --help`,
example: { example: {

View File

@ -348,7 +348,6 @@ describe('@nx/playwright/plugin', () => {
}, },
}, },
}, },
"nonAtomizedTarget": "e2e",
"technologies": [ "technologies": [
"playwright", "playwright",
], ],
@ -384,7 +383,6 @@ describe('@nx/playwright/plugin', () => {
}, },
}, },
}, },
"nonAtomizedTarget": "e2e",
"technologies": [ "technologies": [
"playwright", "playwright",
], ],

View File

@ -226,7 +226,6 @@ async function buildPlaywrightTargets(
metadata: { metadata: {
technologies: ['playwright'], technologies: ['playwright'],
description: `Runs Playwright Tests in ${relativeSpecFilePath} in CI`, description: `Runs Playwright Tests in ${relativeSpecFilePath} in CI`,
nonAtomizedTarget: options.targetName,
help: { help: {
command: `${pmc.exec} playwright test --help`, command: `${pmc.exec} playwright test --help`,
example: { example: {

View File

@ -1,4 +1,4 @@
const nxPreset = require('@nx/jest/preset').default; const nxPreset = require('../node_modules/@nx/jest/preset').default;
/* eslint-disable */ /* eslint-disable */
export default { export default {