Skip to content

Commit ed56e52

Browse files
bloveclaude
andauthored
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

File tree

examples/chat/angular/src/app/shell/e2e-overrides.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: MIT
2+
import { describe, it, expect, afterEach } from 'vitest';
23
import { e2eClientOptions } from './e2e-overrides';
34

45
const KEY = 'THREADPLANE_E2E_MAX_RETRIES';

0 commit comments

Comments
 (0)