Skip to content

Commit

Permalink
chore(release): fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Dec 18, 2024
1 parent 73735ca commit c6d2344
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions e2e/release/src/circular-dependencies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
uniq,
updateJson,
} from '@nx/e2e/utils';
import { execSync } from 'node:child_process';
import { resetWorkspaceContext } from 'nx/src/utils/workspace-context';

expect.addSnapshotSerializer({
Expand Down Expand Up @@ -47,6 +48,7 @@ const originalVerboseLoggingValue = process.env.NX_VERBOSE_LOGGING;
describe('nx release circular dependencies', () => {
let pkg1: string;
let pkg2: string;
let e2eRegistryUrl: string;

beforeAll(async () => {
newProject({
Expand Down Expand Up @@ -85,6 +87,9 @@ describe('nx release circular dependencies', () => {
runCLI('reset');
resetWorkspaceContext();
runCLI('reset');

// This is the verdaccio instance that the e2e tests themselves are working from
e2eRegistryUrl = execSync('npm config get registry').toString().trim();
}, 60000);

afterAll(() => {
Expand Down Expand Up @@ -244,7 +249,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
> nx run {project-name}:nx-release-publish
Expand All @@ -266,7 +271,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down Expand Up @@ -429,7 +434,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
> nx run {project-name}:nx-release-publish
Expand All @@ -451,7 +456,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down Expand Up @@ -613,7 +618,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
> nx run {project-name}:nx-release-publish
Expand All @@ -635,7 +640,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down Expand Up @@ -757,7 +762,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down Expand Up @@ -919,7 +924,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
> nx run {project-name}:nx-release-publish
Expand All @@ -941,7 +946,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down Expand Up @@ -1091,7 +1096,7 @@ describe('nx release circular dependencies', () => {
integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
total files: 3
Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
Would publish to ${e2eRegistryUrl} with tag "latest", but [dry-run] was set
Expand Down

0 comments on commit c6d2344

Please sign in to comment.