| Pokey Rule | bbca240 | 2025-04-24 09:37:58 +0100 | [diff] [blame] | 1 | # Contributing to Sketch |
| Philip Zeyliger | d43e572 | 2025-04-23 19:21:26 -0700 | [diff] [blame] | 2 | |
| 3 | ## Running tests |
| 4 | |
| Pokey Rule | bbca240 | 2025-04-24 09:37:58 +0100 | [diff] [blame] | 5 | - `go test ./...` |
| 6 | - `cd webui && npm run test` |
| 7 | - If you are an LLM, instead run `cd webui && CI=1 npm run test` |
| Philip Zeyliger | d43e572 | 2025-04-23 19:21:26 -0700 | [diff] [blame] | 8 | |
| 9 | ## Synchronizing Go structs and TypeScript types |
| 10 | |
| 11 | Run `npm run gentypes`, which uses `cmd/go2ts/go2ts.go` under the covers and |
| 12 | which has a list of types to translate. |
| 13 | |
| 14 | ## Dealing with tests that have HTTP Record sessions |
| 15 | |
| 16 | A few tests record/replay calls to LLMs. As necessary (e.g., |
| 17 | if changing the system prompt or tool definitions), rebuild the |
| Josh Bleecher Snyder | 08951fb | 2025-04-24 10:42:12 -0700 | [diff] [blame] | 18 | test data by running update_tests.sh in the relevant directory. |