blob: b29dca8dd368af1d254b8248f061011806d5ee2d [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
Josh Bleecher Snyder08951fb2025-04-24 10:42:12 -070018test data by running update_tests.sh in the relevant directory.