mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
369b5d1c2d
* feat: Support generating generics in interfaces * Switch struct to a template * Support generics in apitypings
6 lines
248 B
Markdown
6 lines
248 B
Markdown
# How to add a unit test
|
|
|
|
1. Create a new directory in `testdata`
|
|
2. Name a go file `<directory_name>.go`. This file will generate the typescript.
|
|
3. Name the expected typescript file `<directory_name>.ts`. This is the unit test's expected output.
|