Commit 9c1c96e
committed
Fix typecheck and pre-existing test failures
- cli/src/pre-init/tree-sitter-wasm.ts: silence TS error for the bun-only
`with { type: 'file' }` import (TS resolves the .wasm via the package's
exports map and has no loader for binary assets).
- cli/src/__tests__/integration-tmux.test.ts: explicitly clear
FREEBUFF_MODE from the tmux global env before running. A prior freebuff
build or `bun run dev:freebuff` in the same tmux server leaves it set,
which made the help-output test see the freebuff CLI variant (no
`--agent` flag) instead of codebuff.
- web/jest.config.cjs: fix react/react-dom moduleNameMapper paths — they
pointed at `web/node_modules/react` but bun hoists react to the
workspace root.
- web/jest.setup.js: polyfill TextEncoder/TextDecoder, ReadableStream,
Request/Response/Headers/fetch from Node + undici. JSDOM lacks these
globals, and undici (loaded transitively via `next/server`) needs them
at module-load time.1 parent e814093 commit 9c1c96e
4 files changed
Lines changed: 33 additions & 2 deletions
File tree
- cli/src
- __tests__
- pre-init
- web
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments