Commit 5f08383
fix(codegen-ts): migrate test sources from InMemorySource to InMemoryStringSource
The Python-loader-unification merge that landed on main (a3e6f65) renamed
the metadata package's `InMemorySource` to `InMemoryStringSource` with a
new constructor signature requiring an explicit { id, format } metadata
argument.
This branch's two new test files (prompt-render-file.test.ts and
prompt-render-conformance.test.ts) were authored against the old API on a
parallel timeline; the integration merge surfaced the breakage. Forward
fix updates both to the new constructor shape:
new InMemoryStringSource(json, { id: "...", format: "json" })
All 2548 tests now pass on the merged main; build is clean across all 14
packages.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6e357b0 commit 5f08383
2 files changed
Lines changed: 10 additions & 4 deletions
File tree
- server/typescript/packages/codegen-ts/test
- generators
- golden
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
0 commit comments