Commit ed56e52
fix(examples/chat): import vitest globals in e2e-overrides spec (unbreak app build) (#679)
`tsconfig.app.json` includes `src/**/*.ts` with `types: []`, so the Angular
app build type-checks every spec. `e2e-overrides.spec.ts` (added in #677) used
ambient `describe`/`it`/`expect`/`afterEach`, which fail under the app build
(`TS2304`/`TS2593`) — the bundle never generates, the e2e server never starts,
and all 4 `examples/chat` e2e shards time out. Matches the existing specs by
importing the globals from vitest explicitly.
Regressed main at 3c45540 (#677 merge); local `nx test` masked it because only
`nx serve`/the app build compiles specs under tsconfig.app.json.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent c1ae4eb commit ed56e52
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments