forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular/cli): don't search for lazy routes in Angular 5 ng test
Fix angular#8066
- Loading branch information
1 parent
7e5bb41
commit 1154e55
Showing
4 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,16 +52,20 @@ export default function() { | |
.then(() => updateTsConfig(json => { | ||
json['compilerOptions']['sourceRoot'] = '/'; | ||
})) | ||
.then(() => updateJsonFile('src/tsconfig.spec.json', json => { | ||
.then(() => { | ||
if (argv.nightly) { | ||
// ************************************************************************************* | ||
// REMOVE THIS WITH UPDATED NG5 SCHEMATICS | ||
// In ng5 we have to tell users users to update their tsconfig.json. | ||
// `src/tsconfig.spec.json` needs to be updated with `"include": [ "**/*.ts" ]` | ||
// `src/tsconfig.spec.json` needs to be updated with "polyfills.ts" on `include`. | ||
// ************************************************************************************* | ||
json['include'] = ['**/*.ts']; | ||
return updateJsonFile('src/tsconfig.spec.json', json => { | ||
json['include'] = json['include'].concat('polyfills.ts'); | ||
}) | ||
// Ignore error if file doesn't exist. | ||
.catch(() => { return; }); | ||
} | ||
})) | ||
}) | ||
.then(() => git('config', 'user.email', '[email protected]')) | ||
.then(() => git('config', 'user.name', 'Angular CLI E2e')) | ||
.then(() => git('config', 'commit.gpgSign', 'false')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters