build: enable service-worker tests on saucelabs (#36129)

Enables the `service-worker` tests on Saucelabs and fixes some issues that were preventing them from running on IE. The issues were:
1. We were serving es2017 code during tests. I've set it to es5.
2. The check which was verifying whether the environment is supported ended up hitting a `require` call in the browser which caused it to fail on browsers that don't support the `URL` API.

PR Close #36129
This commit is contained in:
crisbeto
2020-03-19 17:52:11 +01:00
committed by Kara Erickson
parent 75afd80ae8
commit e9de28111d
4 changed files with 6 additions and 37 deletions

View File

@ -33,14 +33,6 @@ jasmine_node_test(
karma_web_test_suite(
name = "test_web",
tags = [
# FIXME: fix on saucelabs
# ERROR: 'There is no timestamp for @angular/service-worker/worker/src/db-cache.js!'
# ERROR: 'There is no timestamp for @angular/service-worker/worker/src/driver.js!'
# ERROR: 'There is no timestamp for @angular/service-worker/worker/src/sha1.js!'
"fixme-saucelabs-ivy",
"fixme-saucelabs-ve",
],
deps = [
":test_lib",
],