Skip to content

Commit 9ff714d

Browse files
chore(repo): format split e2e test files
1 parent 3201a34 commit 9ff714d

26 files changed

+271
-271
lines changed

e2e/react/src/module-federation/independent-deployability-different-lib-versions.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import {
66
uniq,
77
updateFile,
88
updateJson,
9-
} from "@nx/e2e-utils";
10-
import { stripIndents } from "nx/src/utils/strip-indents";
11-
import { readPort, runCLI } from "./utils";
9+
} from '@nx/e2e-utils';
10+
import { stripIndents } from 'nx/src/utils/strip-indents';
11+
import { readPort, runCLI } from './utils';
1212
import {
1313
setupIndependentDeployabilityTest,
1414
cleanupIndependentDeployabilityTest,
15-
} from "./independent-deployability-setup";
15+
} from './independent-deployability-setup';
1616

17-
describe("Independent Deployability", () => {
17+
describe('Independent Deployability', () => {
1818
let proj: string;
1919
beforeAll(() => {
2020
proj = setupIndependentDeployabilityTest();
@@ -24,10 +24,10 @@ describe("Independent Deployability", () => {
2424
cleanupIndependentDeployabilityTest();
2525
});
2626

27-
it("should support different versions workspace libs for host and remote", async () => {
28-
const shell = uniq("shell");
29-
const remote = uniq("remote");
30-
const lib = uniq("lib");
27+
it('should support different versions workspace libs for host and remote', async () => {
28+
const shell = uniq('shell');
29+
const remote = uniq('remote');
30+
const lib = uniq('lib');
3131

3232
const shellPort = await getAvailablePort();
3333

@@ -51,7 +51,7 @@ describe("Independent Deployability", () => {
5151
updateJson(`${lib}/package.json`, (json) => {
5252
return {
5353
...json,
54-
version: "0.0.1",
54+
version: '0.0.1',
5555
};
5656
});
5757

@@ -148,7 +148,7 @@ describe("Independent Deployability", () => {
148148
// test remote e2e
149149
const remoteE2eResults = await runCommandUntil(
150150
`e2e ${remote}-e2e --no-watch --verbose`,
151-
(output) => output.includes("All specs passed!")
151+
(output) => output.includes('All specs passed!')
152152
);
153153
await killProcessAndPorts(remoteE2eResults.pid, remotePort);
154154

@@ -165,7 +165,7 @@ describe("Independent Deployability", () => {
165165
await killProcessAndPorts(remoteProcess.pid, remotePort);
166166
const shellE2eResults = await runCommandUntil(
167167
`e2e ${shell}-e2e --no-watch --verbose`,
168-
(output) => output.includes("All specs passed!")
168+
(output) => output.includes('All specs passed!')
169169
);
170170
await killProcessAndPorts(
171171
shellE2eResults.pid,

e2e/react/src/module-federation/independent-deployability-library-type-var.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import {
55
runE2ETests,
66
uniq,
77
updateFile,
8-
} from "@nx/e2e-utils";
9-
import { stripIndents } from "nx/src/utils/strip-indents";
10-
import { readPort, runCLI } from "./utils";
8+
} from '@nx/e2e-utils';
9+
import { stripIndents } from 'nx/src/utils/strip-indents';
10+
import { readPort, runCLI } from './utils';
1111
import {
1212
setupIndependentDeployabilityTest,
1313
cleanupIndependentDeployabilityTest,
14-
} from "./independent-deployability-setup";
14+
} from './independent-deployability-setup';
1515

16-
describe("Independent Deployability", () => {
16+
describe('Independent Deployability', () => {
1717
let proj: string;
1818
beforeAll(() => {
1919
proj = setupIndependentDeployabilityTest();
@@ -23,9 +23,9 @@ describe("Independent Deployability", () => {
2323
cleanupIndependentDeployabilityTest();
2424
});
2525

26-
it("should support host and remote with library type var", async () => {
27-
const shell = uniq("shell");
28-
const remote = uniq("remote");
26+
it('should support host and remote with library type var', async () => {
27+
const shell = uniq('shell');
28+
const remote = uniq('remote');
2929
const shellPort = await getAvailablePort();
3030

3131
runCLI(
@@ -106,13 +106,13 @@ describe("Independent Deployability", () => {
106106
const buildOutput = runCLI(`build ${shell}`);
107107
const remoteOutput = runCLI(`build ${remote}`);
108108

109-
expect(buildOutput).toContain("Successfully ran target build");
110-
expect(remoteOutput).toContain("Successfully ran target build");
109+
expect(buildOutput).toContain('Successfully ran target build');
110+
expect(remoteOutput).toContain('Successfully ran target build');
111111

112112
if (runE2ETests()) {
113113
const hostE2eResultsSwc = await runCommandUntil(
114114
`e2e ${shell}-e2e --no-watch --verbose`,
115-
(output) => output.includes("All specs passed!")
115+
(output) => output.includes('All specs passed!')
116116
);
117117
await killProcessAndPorts(
118118
hostE2eResultsSwc.pid,
@@ -123,15 +123,15 @@ describe("Independent Deployability", () => {
123123

124124
const remoteE2eResultsSwc = await runCommandUntil(
125125
`e2e ${remote}-e2e --no-watch --verbose`,
126-
(output) => output.includes("All specs passed!")
126+
(output) => output.includes('All specs passed!')
127127
);
128128

129129
await killProcessAndPorts(remoteE2eResultsSwc.pid, remotePort);
130130

131131
const hostE2eResultsTsNode = await runCommandUntil(
132132
`e2e ${shell}-e2e --no-watch --verbose`,
133-
(output) => output.includes("All specs passed!"),
134-
{ env: { NX_PREFER_TS_NODE: "true" } }
133+
(output) => output.includes('All specs passed!'),
134+
{ env: { NX_PREFER_TS_NODE: 'true' } }
135135
);
136136

137137
await killProcessAndPorts(
@@ -143,8 +143,8 @@ describe("Independent Deployability", () => {
143143

144144
const remoteE2eResultsTsNode = await runCommandUntil(
145145
`e2e ${remote}-e2e --no-watch --verbose`,
146-
(output) => output.includes("All specs passed!"),
147-
{ env: { NX_PREFER_TS_NODE: "true" } }
146+
(output) => output.includes('All specs passed!'),
147+
{ env: { NX_PREFER_TS_NODE: 'true' } }
148148
);
149149

150150
await killProcessAndPorts(remoteE2eResultsTsNode.pid, remotePort);

e2e/react/src/module-federation/independent-deployability-promise-based-remotes.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import {
66
uniq,
77
updateFile,
88
updateJson,
9-
} from "@nx/e2e-utils";
10-
import { stripIndents } from "nx/src/utils/strip-indents";
11-
import { readPort, runCLI } from "./utils";
9+
} from '@nx/e2e-utils';
10+
import { stripIndents } from 'nx/src/utils/strip-indents';
11+
import { readPort, runCLI } from './utils';
1212
import {
1313
setupIndependentDeployabilityTest,
1414
cleanupIndependentDeployabilityTest,
15-
} from "./independent-deployability-setup";
15+
} from './independent-deployability-setup';
1616

17-
describe("Independent Deployability", () => {
17+
describe('Independent Deployability', () => {
1818
let proj: string;
1919
beforeAll(() => {
2020
proj = setupIndependentDeployabilityTest();
@@ -24,9 +24,9 @@ describe("Independent Deployability", () => {
2424
cleanupIndependentDeployabilityTest();
2525
});
2626

27-
it("should support promised based remotes", async () => {
28-
const remote = uniq("remote");
29-
const host = uniq("host");
27+
it('should support promised based remotes', async () => {
28+
const remote = uniq('remote');
29+
const host = uniq('host');
3030

3131
const shellPort = await getAvailablePort();
3232

@@ -141,8 +141,8 @@ describe("Independent Deployability", () => {
141141
const buildOutput = runCLI(`build ${host}`);
142142
const remoteOutput = runCLI(`build ${remote}`);
143143

144-
expect(buildOutput).toContain("Successfully ran target build");
145-
expect(remoteOutput).toContain("Successfully ran target build");
144+
expect(buildOutput).toContain('Successfully ran target build');
145+
expect(remoteOutput).toContain('Successfully ran target build');
146146

147147
if (runE2ETests()) {
148148
const remoteProcess = await runCommandUntil(
@@ -153,7 +153,7 @@ describe("Independent Deployability", () => {
153153
);
154154
const hostE2eResults = await runCommandUntil(
155155
`e2e ${host}-e2e --no-watch --verbose`,
156-
(output) => output.includes("All specs passed!")
156+
(output) => output.includes('All specs passed!')
157157
);
158158
await killProcessAndPorts(hostE2eResults.pid, hostPort, hostPort + 1);
159159
await killProcessAndPorts(remoteProcess.pid, remotePort);

e2e/react/src/module-federation/independent-deployability-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { cleanupProject, newProject } from "@nx/e2e-utils";
1+
import { cleanupProject, newProject } from '@nx/e2e-utils';
22

33
export function setupIndependentDeployabilityTest() {
44
let proj: string;
5-
process.env.NX_ADD_PLUGINS = "false";
5+
process.env.NX_ADD_PLUGINS = 'false';
66
proj = newProject();
77
return proj;
88
}

e2e/remix/src/nx-remix-npm.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { runCLI, uniq, runCommandAsync } from "@nx/e2e-utils";
2-
import { setupNxRemixTestNpm, cleanupNxRemixTest } from "./nx-remix-setup-npm";
1+
import { runCLI, uniq, runCommandAsync } from '@nx/e2e-utils';
2+
import { setupNxRemixTestNpm, cleanupNxRemixTest } from './nx-remix-setup-npm';
33

4-
describe("Remix E2E Tests", () => {
5-
describe("--integrated (npm)", () => {
4+
describe('Remix E2E Tests', () => {
5+
describe('--integrated (npm)', () => {
66
beforeAll(() => {
77
setupNxRemixTestNpm();
88
});
@@ -11,13 +11,13 @@ describe("Remix E2E Tests", () => {
1111
cleanupNxRemixTest();
1212
});
1313

14-
it("should not cause peer dependency conflicts", async () => {
15-
const plugin = uniq("remix");
14+
it('should not cause peer dependency conflicts', async () => {
15+
const plugin = uniq('remix');
1616
runCLI(
1717
`generate @nx/remix:app ${plugin} --linter=eslint --unitTestRunner=vitest`
1818
);
1919

20-
await runCommandAsync("npm install");
20+
await runCommandAsync('npm install');
2121
}, 120000);
2222
});
2323
});

e2e/remix/src/nx-remix-setup-npm.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { cleanupProject, killPorts, newProject } from "@nx/e2e-utils";
1+
import { cleanupProject, killPorts, newProject } from '@nx/e2e-utils';
22

33
export function setupNxRemixTestNpm() {
44
newProject({
5-
packages: ["@nx/remix", "@nx/react"],
6-
packageManager: "npm",
5+
packages: ['@nx/remix', '@nx/react'],
6+
packageManager: 'npm',
77
});
88
}
99

e2e/remix/src/nx-remix-setup-standalone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { cleanupProject, killPorts, newProject } from "@nx/e2e-utils";
1+
import { cleanupProject, killPorts, newProject } from '@nx/e2e-utils';
22

33
export function setupNxRemixTestStandalone() {
4-
const proj = newProject({ packages: ["@nx/remix"] });
4+
const proj = newProject({ packages: ['@nx/remix'] });
55
return proj;
66
}
77

e2e/remix/src/nx-remix-setup-yarn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { cleanupProject, killPorts, newProject } from "@nx/e2e-utils";
1+
import { cleanupProject, killPorts, newProject } from '@nx/e2e-utils';
22

33
export function setupNxRemixTestYarn() {
44
newProject({
5-
packages: ["@nx/remix", "@nx/react"],
6-
packageManager: "yarn",
5+
packages: ['@nx/remix', '@nx/react'],
6+
packageManager: 'yarn',
77
});
88
}
99

e2e/remix/src/nx-remix-standalone.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { runCLI, uniq, updateFile } from "@nx/e2e-utils";
1+
import { runCLI, uniq, updateFile } from '@nx/e2e-utils';
22
import {
33
setupNxRemixTestStandalone,
44
cleanupNxRemixTest,
5-
} from "./nx-remix-setup-standalone";
5+
} from './nx-remix-setup-standalone';
66

7-
describe("Remix E2E Tests", () => {
8-
describe("--standalone", () => {
7+
describe('Remix E2E Tests', () => {
8+
describe('--standalone', () => {
99
let proj: string;
1010

1111
beforeAll(() => {
@@ -16,8 +16,8 @@ describe("Remix E2E Tests", () => {
1616
cleanupNxRemixTest();
1717
});
1818

19-
it("should create a standalone remix app", async () => {
20-
const appName = uniq("remix");
19+
it('should create a standalone remix app', async () => {
20+
const appName = uniq('remix');
2121
runCLI(
2222
`generate @nx/remix:preset --name ${appName} --directory=apps/${appName} --verbose`
2323
);
@@ -37,7 +37,7 @@ describe("Remix E2E Tests", () => {
3737
);
3838

3939
const result = runCLI(`build ${appName}`);
40-
expect(result).toContain("Successfully ran target build");
40+
expect(result).toContain('Successfully ran target build');
4141
}, 120_000);
4242
});
4343
});

e2e/remix/src/nx-remix-yarn-basic.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { runCLI, checkFilesExist, readJson, uniq } from "@nx/e2e-utils";
1+
import { runCLI, checkFilesExist, readJson, uniq } from '@nx/e2e-utils';
22
import {
33
setupNxRemixTestYarn,
44
cleanupNxRemixTest,
5-
} from "./nx-remix-setup-yarn";
5+
} from './nx-remix-setup-yarn';
66

7-
describe("Remix E2E Tests", () => {
8-
describe("--integrated (yarn)", () => {
7+
describe('Remix E2E Tests', () => {
8+
describe('--integrated (yarn)', () => {
99
beforeAll(async () => {
1010
setupNxRemixTestYarn();
1111
});
@@ -14,52 +14,52 @@ describe("Remix E2E Tests", () => {
1414
cleanupNxRemixTest();
1515
});
1616

17-
it("should create app", async () => {
18-
const plugin = uniq("remix");
17+
it('should create app', async () => {
18+
const plugin = uniq('remix');
1919
runCLI(
2020
`generate @nx/remix:app ${plugin} --linter=eslint --unitTestRunner=vitest`
2121
);
2222

2323
const buildResult = runCLI(`build ${plugin}`);
24-
expect(buildResult).toContain("Successfully ran target build");
24+
expect(buildResult).toContain('Successfully ran target build');
2525

2626
const testResult = runCLI(`test ${plugin}`);
27-
expect(testResult).toContain("Successfully ran target test");
27+
expect(testResult).toContain('Successfully ran target test');
2828
}, 120000);
2929

30-
describe("--directory", () => {
31-
it("should create src in the specified directory", async () => {
32-
const plugin = uniq("remix");
30+
describe('--directory', () => {
31+
it('should create src in the specified directory', async () => {
32+
const plugin = uniq('remix');
3333
runCLI(
3434
`generate @nx/remix:app --name=${plugin} --directory=subdir --rootProject=false --no-interactive --linter=eslint --unitTestRunner=vitest`
3535
);
3636

3737
const result = runCLI(`build ${plugin}`);
38-
expect(result).toContain("Successfully ran target build");
38+
expect(result).toContain('Successfully ran target build');
3939
checkFilesExist(`subdir/build/server/index.js`);
4040
}, 120000);
4141
});
4242

43-
describe("--tags", () => {
44-
it("should add tags to the project", async () => {
45-
const plugin = uniq("remix");
43+
describe('--tags', () => {
44+
it('should add tags to the project', async () => {
45+
const plugin = uniq('remix');
4646
runCLI(
4747
`generate @nx/remix:app apps/${plugin} --tags e2etag,e2ePackage --linter=eslint --unitTestRunner=vitest`
4848
);
4949
const project = readJson(`apps/${plugin}/project.json`);
50-
expect(project.tags).toEqual(["e2etag", "e2ePackage"]);
50+
expect(project.tags).toEqual(['e2etag', 'e2ePackage']);
5151
}, 120000);
5252
});
5353

54-
describe("--js", () => {
55-
it("should create js app and build correctly", async () => {
56-
const plugin = uniq("remix");
54+
describe('--js', () => {
55+
it('should create js app and build correctly', async () => {
56+
const plugin = uniq('remix');
5757
runCLI(
5858
`generate @nx/remix:app ${plugin} --js=true --linter=eslint --unitTestRunner=vitest`
5959
);
6060

6161
const result = runCLI(`build ${plugin}`);
62-
expect(result).toContain("Successfully ran target build");
62+
expect(result).toContain('Successfully ran target build');
6363
}, 120000);
6464
});
6565
});

0 commit comments

Comments
 (0)