Skip to content

Commit

Permalink
fix(schematics): set correct tsConfig for lint for cypress project
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored and vsavkin committed Nov 12, 2018
1 parent ed938e4 commit e4f45af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ describe('schematic:cypres-project', () => {
appTree
);
const angularJson = readJsonInTree(tree, 'angular.json');
const project = angularJson.projects['my-app-e2e'];

expect(angularJson.projects['my-app-e2e'].root).toEqual(
'apps/my-app-e2e'
expect(project.root).toEqual('apps/my-app-e2e');

expect(project.architect.e2e.builder).toEqual('@nrwl/builders:cypress');
expect(project.architect.lint.options.tsConfig).toEqual(
'apps/my-app-e2e/tsconfig.e2e.json'
);
});

Expand Down
4 changes: 4 additions & 0 deletions packages/schematics/src/collection/cypress-project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ function updateAngularJson(options: CypressProjectSchema): Rule {
}
}
};
projectConfig.architect.lint.options.tsConfig = join(
normalize(options.e2eProjectRoot),
'tsconfig.e2e.json'
);
json.projects[options.e2eProjectName] = projectConfig;
return json;
});
Expand Down

0 comments on commit e4f45af

Please sign in to comment.