Skip to content

Commit

Permalink
chore(core): invert nx daemon tests from enable to disable (#13290)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Nov 21, 2022
1 parent bd4f4a2 commit 7f48023
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions e2e/nx-run/src/run.test.ts
Expand Up @@ -224,18 +224,18 @@ describe('Nx Running Tests', () => {
expect(runCLI(`echo ${myapp}`)).toContain('inferred-target');
});

it('should build a specific project with the daemon enabled', () => {
it('should build a specific project with the daemon disabled', () => {
const myapp = uniq('app');
runCLI(`generate @nrwl/web:app ${myapp}`);

const buildWithDaemon = runCLI(`build ${myapp}`, {
env: { ...process.env, NX_DAEMON: 'true' },
env: { ...process.env, NX_DAEMON: 'false' },
});

expect(buildWithDaemon).toContain('Successfully ran target build');

const buildAgain = runCLI(`build ${myapp}`, {
env: { ...process.env, NX_DAEMON: 'true' },
env: { ...process.env, NX_DAEMON: 'false' },
});

expect(buildAgain).toContain('[local cache]');
Expand Down Expand Up @@ -438,9 +438,9 @@ describe('Nx Running Tests', () => {
expect(buildConfig).toContain(`run ${libC}:build`);
expect(buildConfig).toContain('Successfully ran target build');

// testing run many with daemon enabled
// testing run many with daemon disabled
const buildWithDaemon = runCLI(`run-many --target=build`, {
env: { ...process.env, NX_DAEMON: 'true' },
env: { ...process.env, NX_DAEMON: 'false' },
});
expect(buildWithDaemon).toContain(`Successfully ran target build`);
}, 1000000);
Expand Down

0 comments on commit 7f48023

Please sign in to comment.