Commit e63bd14
committed
PD-6016 fix karma spec discovery, restoring 686 tests from 1
src/test.ts was configured as the karma main but contained only the
zone.js import and initTestEnvironment, without the require.context that
pulls in spec files. With a main set, the builder loads only that entry,
so ng test ran 1 test while 334 spec files sat unexecuted. The suite has
effectively been a no-op, which is how a regression can land in a file
that ships with tests.
Declare zone.js/testing alongside the existing polyfills and drop main,
which lets the builder discover specs from tsconfig.spec.json. Delete
test.ts, now unreachable, and drop it from the spec tsconfig files list.1 parent 66f22f2 commit e63bd14
3 files changed
Lines changed: 2 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
| 422 | + | |
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
0 commit comments