Skip to content

Commit ceb2588

Browse files
filipesilvahansl
authored andcommitted
test: re-enable service worker test
1 parent 11dc7a9 commit ceb2588

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/e2e/tests/build/service-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export default function() {
3232
// stuck to the first build done
3333
return silentNpm('remove', '@angular/service-worker')
3434
.then(() => silentNpm('install', '@angular/service-worker'))
35-
.then(() => ng('config', 'apps.0.serviceWorker', 'true'))
36-
.then(() => writeFile('projects/test-project/src/ngsw-config.json', JSON.stringify(MANIFEST, null, 2)))
35+
.then(() => ng('config', 'projects.test-project.architect.build.options.serviceWorker', 'true'))
36+
.then(() => writeFile('projects/test-project/ngsw-config.json', JSON.stringify(MANIFEST, null, 2)))
3737
.then(() => ng('build', '--optimization'))
3838
.then(() => expectFileToExist(join(process.cwd(), 'dist')))
3939
.then(() => expectFileToExist(join(process.cwd(), 'dist/test-project/ngsw.json')))

tests/e2e_runner.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ const allTests = glob.sync(path.join(e2eRoot, testGlob), { nodir: true, ignore:
112112
.map(name => name.replace(/\\/g, '/'))
113113
.filter(name => !name.endsWith('/build-app-shell-with-schematic.ts'))
114114
.filter(name => !name.endsWith('/bundle-budgets.ts'))
115-
.filter(name => !name.endsWith('/service-worker.ts'))
116115
.filter(name => !name.endsWith('/new-minimal.ts'))
117116
// IS this test still valid? \/
118117
.filter(name => !name.endsWith('/module-id.ts'))

0 commit comments

Comments
 (0)