Skip to content

Commit a302418

Browse files
filipesilvahansl
authored andcommitted
test: don't install after generating lib
1 parent e65a885 commit a302418

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { ng, silentNpm } from '../../../utils/process';
1+
import { ng } from '../../../utils/process';
22
import { expectFileToMatch } from '../../../utils/fs';
33
import { useCIChrome } from '../../../utils/project';
44

55
export default function () {
66
return ng('generate', 'library', 'my-lib')
77
.then(() => expectFileToMatch('angular.json', /\"my-lib\":/))
88
.then(() => useCIChrome('projects/my-lib'))
9-
.then(() => silentNpm('install'))
109
.then(() => ng('build', 'my-lib'))
1110
.then(() => ng('test', 'my-lib', '--watch=false'));
1211
}

tests/e2e/tests/generate/library/library-consumption.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { ng, silentNpm } from '../../../utils/process';
1+
import { ng } from '../../../utils/process';
22
import { writeFile } from '../../../utils/fs';
33

44
export default function () {
55
return ng('generate', 'library', 'my-lib')
6-
.then(() => silentNpm('install'))
76
.then(() => ng('build', 'my-lib'))
87
.then(() => writeFile('./src/app/app.module.ts', `
98
import { BrowserModule } from '@angular/platform-browser';

0 commit comments

Comments
 (0)