Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): fix e2e #29399

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading