fix(schematics): set correct tsConfig for lint for cypress project
This commit is contained in:
parent
ed938e4cda
commit
e4f45afad9
@ -81,9 +81,13 @@ describe('schematic:cypres-project', () => {
|
|||||||
appTree
|
appTree
|
||||||
);
|
);
|
||||||
const angularJson = readJsonInTree(tree, 'angular.json');
|
const angularJson = readJsonInTree(tree, 'angular.json');
|
||||||
|
const project = angularJson.projects['my-app-e2e'];
|
||||||
|
|
||||||
expect(angularJson.projects['my-app-e2e'].root).toEqual(
|
expect(project.root).toEqual('apps/my-app-e2e');
|
||||||
'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'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
json.projects[options.e2eProjectName] = projectConfig;
|
||||||
return json;
|
return json;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user