Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(angular): set tsconfig path correctly (#9386)
  • Loading branch information
Coly010 authored and FrozenPandaz committed Mar 21, 2022
1 parent ae40364 commit 7b5664b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions e2e/angular-core/src/projects.test.ts
Expand Up @@ -297,4 +297,28 @@ describe('Angular Projects', () => {
expect(err).toBeFalsy();
}
}, 300000);

it('MFE - should build the host app successfully', async () => {
// ARRANGE
const port1 = 4205;
const port2 = 4206;
const hostApp = uniq('app');
const remoteApp1 = uniq('remote');

// generate host app
runCLI(
`generate @nrwl/angular:host ${hostApp} -- --port=${port1} --no-interactive`
);

// generate remote apps
runCLI(
`generate @nrwl/angular:remote ${remoteApp1} -- --host=${hostApp} --port=${port2} --no-interactive`
);

// ACT
const buildOutput = runCLI(`build ${hostApp}`);

// ASSERT
expect(buildOutput).toContain('Successfully ran target build');
}, 300000);
});
Expand Up @@ -113,8 +113,8 @@ function run(
result.target.data.root,
dependencies
);
process.env.NX_TSCONFIG_PATH = options.tsConfig;
}
process.env.NX_TSCONFIG_PATH = options.tsConfig;

return of(
!options.buildLibsFromSource
Expand Down

0 comments on commit 7b5664b

Please sign in to comment.