Skip to content

Commit

Permalink
fix(schematics): fix e2e lint config in angular cli json
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored and vsavkin committed Mar 25, 2018
1 parent 476688b commit fc0bec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions e2e/schematics/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ describe('Nrwl Convert to Nx Workspace', () => {
'@nrwl/schematics'
);

expect(updatedAngularCLIJson.lint[0].project).toEqual('apps/proj/src/tsconfig.app.json');
expect(updatedAngularCLIJson.lint[1].project).toEqual('./tsconfig.spec.json');
expect(updatedAngularCLIJson.lint[2].project).toEqual('apps/proj/e2e/tsconfig.e2e.json');

// check if tsconfig.json get merged
const updatedTsConfig = JSON.parse(readFile('tsconfig.json'));
expect(updatedTsConfig.compilerOptions.paths).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/src/collection/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function updateAngularCLIJson(options: Schema) {
exclude: '**/node_modules/**'
},
{
project: `${options.name}/tsconfig.e2e.json`,
project: join('apps', options.name, 'e2e', 'tsconfig.e2e.json'),
exclude: '**/node_modules/**'
}
];
Expand Down

0 comments on commit fc0bec9

Please sign in to comment.