Skip to content

Commit 7618c4a

Browse files
clydinmgechev
authored andcommitted
test: re-enable style preprocessor include paths E2E (#15590)
1 parent 0216241 commit 7618c4a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/legacy-cli/e2e/tests/build/styles/include-paths.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import { ng } from '../../../utils/process';
88
import { updateJsonFile } from '../../../utils/project';
99

1010
export default function () {
11-
// TODO(architect): The compat layer doesn't yet process `includePaths`.
12-
return;
13-
1411
return Promise.resolve()
1512
.then(() => createDir('src/style-paths'))
1613
.then(() => writeMultipleFiles({
@@ -62,16 +59,16 @@ export default function () {
6259
// files were created successfully
6360
.then(() => ng('build', '--extract-css'))
6461
.then(() => expectFileToMatch('dist/test-project/styles.css', /h1\s*{\s*color: red;\s*}/))
65-
.then(() => expectFileToMatch('dist/test-project/main.js', /h2.*{.*color: red;.*}/))
62+
.then(() => expectFileToMatch('dist/test-project/main-es2015.js', /h2.*{.*color: red;.*}/))
6663
.then(() => expectFileToMatch('dist/test-project/styles.css', /h3\s*{\s*color: #008000;\s*}/))
67-
.then(() => expectFileToMatch('dist/test-project/main.js', /h4.*{.*color: #008000;.*}/))
64+
.then(() => expectFileToMatch('dist/test-project/main-es2015.js', /h4.*{.*color: #008000;.*}/))
6865
.then(() => expectFileToMatch('dist/test-project/styles.css', /h5\s*{\s*color: #ADDADD;\s*}/))
69-
.then(() => expectFileToMatch('dist/test-project/main.js', /h6.*{.*color: #ADDADD;.*}/))
66+
.then(() => expectFileToMatch('dist/test-project/main-es2015.js', /h6.*{.*color: #ADDADD;.*}/))
7067
.then(() => ng('build', '--extract-css', '--aot'))
7168
.then(() => expectFileToMatch('dist/test-project/styles.css', /h1\s*{\s*color: red;\s*}/))
72-
.then(() => expectFileToMatch('dist/test-project/main.js', /h2.*{.*color: red;.*}/))
69+
.then(() => expectFileToMatch('dist/test-project/main-es5.js', /h2.*{.*color: red;.*}/))
7370
.then(() => expectFileToMatch('dist/test-project/styles.css', /h3\s*{\s*color: #008000;\s*}/))
74-
.then(() => expectFileToMatch('dist/test-project/main.js', /h4.*{.*color: #008000;.*}/))
71+
.then(() => expectFileToMatch('dist/test-project/main-es5.js', /h4.*{.*color: #008000;.*}/))
7572
.then(() => expectFileToMatch('dist/test-project/styles.css', /h5\s*{\s*color: #ADDADD;\s*}/))
76-
.then(() => expectFileToMatch('dist/test-project/main.js', /h6.*{.*color: #ADDADD;.*}/));
73+
.then(() => expectFileToMatch('dist/test-project/main-es5.js', /h6.*{.*color: #ADDADD;.*}/));
7774
}

0 commit comments

Comments
 (0)