blob: 6052b51b0bd6fd7c6cc88848f5e24b4b906c2cce [file] [log] [blame] [view]
Philip Zeyligerd43e5722025-04-23 19:21:26 -07001# Developing Sketch
2
3## Running tests
4
5* `go test ./...`
Philip Zeyliger2032b1c2025-04-23 19:40:42 -07006* `cd webui && CI=1 npm run test`
Philip Zeyligerd43e5722025-04-23 19:21:26 -07007
8## Synchronizing Go structs and TypeScript types
9
10Run `npm run gentypes`, which uses `cmd/go2ts/go2ts.go` under the covers and
11which has a list of types to translate.
12
13## Dealing with tests that have HTTP Record sessions
14
15A few tests record/replay calls to LLMs. As necessary (e.g.,
16if changing the system prompt or tool definitions), rebuild the
17test data with:
18
19```
20go test ./dockerimg -httprecord ".*" -rewritewant
21go test ./loop -httprecord .*agent_.*
22```