Commit a07eb70
committed
fix(demo): Resolve @angular/core/testing in the app specs
The three demo app specs have never run: all of them failed to compile with
TS2307 on '@angular/core/testing'. That subpath exists only in the package's
`exports` map -- there is no testing/ directory and no top-level fallback the
way there is for the package root -- and tsconfig.base.json sets
`moduleResolution: node`, which predates `exports` and cannot see it.
Switch the spec configs to bundler resolution, which reads `exports`. It
requires `module` to be es2015 or later, so that moves to esnext;
jest-preset-angular emits CommonJS either way, which is why the suites now run.
Only the specs are affected. The app builds go through Angular's builder, which
brings its own resolution, and no other project imports an exports-only subpath
-- libs/mf-tools only ever imports the @angular/core root, which still resolves
through the package's top-level `typings`.1 parent 0c375f7 commit a07eb70
3 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments