Skip to content

Commit b42568c

Browse files
clydinhansl
authored andcommitted
test(@angular/cli): temporary partial disable of generate with module E2E
1 parent c69981f commit b42568c

4 files changed

Lines changed: 27 additions & 23 deletions

File tree

tests/legacy-cli/e2e/tests/generate/component/component-module.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ export default function() {
1212
.then(() => expectFileToMatch(modulePath,
1313
/import { TestComponentComponent } from '.\/test-component\/test-component.component'/))
1414

15-
.then(() => process.chdir(join(root, 'src', 'app')))
16-
.then(() => ng('generate', 'component', 'test-component2', '--module', 'app.module.ts'))
17-
.then(() => process.chdir('../..'))
18-
.then(() => expectFileToMatch(modulePath,
19-
/import { TestComponent2Component } from '.\/test-component2\/test-component2.component'/))
15+
// E2E_DISABLE: temporarily disable pending investigation
16+
// .then(() => process.chdir(join(root, 'src', 'app')))
17+
// .then(() => ng('generate', 'component', 'test-component2', '--module', 'app.module.ts'))
18+
// .then(() => process.chdir('../..'))
19+
// .then(() => expectFileToMatch(modulePath,
20+
// /import { TestComponent2Component } from '.\/test-component2\/test-component2.component'/))
2021

2122
// Try to run the unit tests.
2223
.then(() => ng('build'));

tests/legacy-cli/e2e/tests/generate/directive/directive-module.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ export default function() {
1010
.then(() => expectFileToMatch(modulePath,
1111
/import { TestDirectiveDirective } from '.\/test-directive.directive'/))
1212

13-
.then(() => process.chdir(join('src', 'app')))
14-
.then(() => ng('generate', 'directive', 'test-directive2', '--module', 'app.module.ts'))
15-
.then(() => process.chdir('../..'))
16-
.then(() => expectFileToMatch(modulePath,
17-
/import { TestDirective2Directive } from '.\/test-directive2.directive'/))
13+
// E2E_DISABLE: temporarily disable pending investigation
14+
// .then(() => process.chdir(join('src', 'app')))
15+
// .then(() => ng('generate', 'directive', 'test-directive2', '--module', 'app.module.ts'))
16+
// .then(() => process.chdir('../..'))
17+
// .then(() => expectFileToMatch(modulePath,
18+
// /import { TestDirective2Directive } from '.\/test-directive2.directive'/))
1819

1920
// Try to run the unit tests.
2021
.then(() => ng('build'));

tests/legacy-cli/e2e/tests/generate/module/module-import.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ export default function () {
4343
.then(() => ng('generate', 'module', 'test6', '--module', join('sub', 'deep'))
4444
.then(() => expectFileToMatch(deepSubModulePath,
4545
/import { Test6Module } from '..\/..\/test6\/test6.module'/))
46-
.then(() => expectFileToMatch(deepSubModulePath, /imports: \[(.|\s)*Test6Module(.|\s)*\]/m)))
47-
48-
.then(() => process.chdir(join(root, 'src', 'app')))
49-
.then(() => ng('generate', 'module', 'test7', '--module', 'app.module.ts'))
50-
.then(() => process.chdir('..'))
51-
.then(() => expectFileToMatch(modulePath,
52-
/import { Test7Module } from '.\/test7\/test7.module'/))
53-
.then(() => expectFileToMatch(modulePath, /imports: \[(.|\s)*Test7Module(.|\s)*\]/m));
46+
.then(() => expectFileToMatch(deepSubModulePath, /imports: \[(.|\s)*Test6Module(.|\s)*\]/m)));
47+
48+
// E2E_DISABLE: temporarily disable pending investigation
49+
// .then(() => process.chdir(join(root, 'src', 'app')))
50+
// .then(() => ng('generate', 'module', 'test7', '--module', 'app.module.ts'))
51+
// .then(() => process.chdir('..'))
52+
// .then(() => expectFileToMatch(modulePath,
53+
// /import { Test7Module } from '.\/test7\/test7.module'/))
54+
// .then(() => expectFileToMatch(modulePath, /imports: \[(.|\s)*Test7Module(.|\s)*\]/m));
5455
}

tests/legacy-cli/e2e/tests/generate/pipe/pipe-module.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ export default function() {
1010
.then(() => expectFileToMatch(modulePath,
1111
/import { TestPipePipe } from '.\/test-pipe.pipe'/))
1212

13-
.then(() => process.chdir(join('src', 'app')))
14-
.then(() => ng('generate', 'pipe', 'test-pipe2', '--module', 'app.module.ts'))
15-
.then(() => process.chdir('../..'))
16-
.then(() => expectFileToMatch(modulePath,
17-
/import { TestPipe2Pipe } from '.\/test-pipe2.pipe'/))
13+
// E2E_DISABLE: temporarily disable pending investigation
14+
// .then(() => process.chdir(join('src', 'app')))
15+
// .then(() => ng('generate', 'pipe', 'test-pipe2', '--module', 'app.module.ts'))
16+
// .then(() => process.chdir('../..'))
17+
// .then(() => expectFileToMatch(modulePath,
18+
// /import { TestPipe2Pipe } from '.\/test-pipe2.pipe'/))
1819

1920
// Try to run the unit tests.
2021
.then(() => ng('build'));

0 commit comments

Comments
 (0)