Move dedupe cases fixture into web so docker build can see it
The PWA's names.test.ts imported internal/ai/harness/testdata/dedupe_cases.json, which is outside the web build context the Dockerfile's web stage copies, so tsc failed and docker build . failed. The single case file now lives at web/src/dinners/testdata/dedupe_cases.json; the harness Go test reads it from there, as TestLetterFoldsMatchPWA already reads letterFolds.json. Maestro task: 3eee9f68-2d34-4e49-8ca5-43bacfb642f0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
// TestSharedDedupeCases runs testdata/dedupe_cases.json, which the PWA's
|
||||
// copy of Normalize and Similar (web/src/dinners/names.ts) runs too, so the
|
||||
// two cannot drift apart on these names.
|
||||
// TestSharedDedupeCases runs web/src/dinners/testdata/dedupe_cases.json,
|
||||
// which the PWA's copy of Normalize and Similar (web/src/dinners/names.ts)
|
||||
// runs too, so the two cannot drift apart on these names.
|
||||
func TestSharedDedupeCases(t *testing.T) {
|
||||
raw, err := os.ReadFile("testdata/dedupe_cases.json")
|
||||
raw, err := os.ReadFile("../../../web/src/dinners/testdata/dedupe_cases.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user