blob: d574007492e30c4ebceca8e1f947facb6a08c4aa [file] [log] [blame] [view]
Pokey Rulebbca2402025-04-24 09:37:58 +01001# Contributing to Sketch
Philip Zeyligerd43e5722025-04-23 19:21:26 -07002
3## Running tests
4
Pokey Rulebbca2402025-04-24 09:37:58 +01005- `go test ./...`
6- `cd webui && npm run test`
7 - If you are an LLM, instead run `cd webui && CI=1 npm run test`
Philip Zeyligerd43e5722025-04-23 19:21:26 -07008
9## Synchronizing Go structs and TypeScript types
10
11Run `npm run gentypes`, which uses `cmd/go2ts/go2ts.go` under the covers and
12which has a list of types to translate.
13
14## Dealing with tests that have HTTP Record sessions
15
16A few tests record/replay calls to LLMs. As necessary (e.g.,
17if changing the system prompt or tool definitions), rebuild the
18test data with:
19
20```
21go test ./dockerimg -httprecord ".*" -rewritewant
22go test ./loop -httprecord .*agent_.*
23```