coder/scripts/apitypings/testdata
Steven Masley d9da054c9d
chore: update generated array type definitions in TypeScript to be readonly (#12947)
* chore: types generated handling readonly slices

* add -update flag to update goldens

* revert excess gens

* fix: update most UI types to account for readonly modifiers

* fix: remove accidental mutation from NavBarView

* fix: remove mutation warning for BatchUpdateConfirmation stories

* fix: remove mutation warning for BactchUpdateConfirmation

* fix: format ActiveUserChart

* fix: update import to make linter happy

* fix: update fmt issue

* fix: disable file write lint rule from unit test

---------

Co-authored-by: Parkreiner <throwawayclover@gmail.com>
2024-04-15 09:46:10 -04:00
..
enums chore: update generated array type definitions in TypeScript to be readonly (#12947) 2024-04-15 09:46:10 -04:00
genericmap chore: update generated array type definitions in TypeScript to be readonly (#12947) 2024-04-15 09:46:10 -04:00
generics chore: update generated array type definitions in TypeScript to be readonly (#12947) 2024-04-15 09:46:10 -04:00
genericslice chore: update generated array type definitions in TypeScript to be readonly (#12947) 2024-04-15 09:46:10 -04:00
README.md chore: Add generics to typescript generator (#4664) 2022-10-20 08:15:24 -05:00

README.md

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.