Polyfills.ts not getting loaded before scripts when running ng test
#4545
Labels
P1
Impacts a large percentage of users; if a workaround exists it is partial or overly painful
type: bug/fix
The scripts located in
angular-cli.json
are giving errors duringng test
because the polyfills defined inpolyfills.ts
are not loaded into the system before the scripts are loaded.Getting following error:
OS?
Versions.
Repro steps.
ng new angular-cli-test
@webcomponents/custom-elements
andmutationobserver-shim
as dependencies inpackage.json
and in thescripts
array inangular-cli.json
:karma-phantomjs-launcher
as dependency inpackage.json
and update thekarma.conf.js
to use PhantomJS instead of Chrome.and
ng test --watch=false --log-level=debug
The log given by the failure.
Observe that the scripts do not see any polyfills that were added from
polyfills.ts
:From the output you can see that
comes after
Full log output:
Mention any other details that might be useful.
Might be related to issue #3309?
The text was updated successfully, but these errors were encountered: