A table of cases that checks itself
A row type can expose mistakes in test data before a test runs.
your task
Export PriceCase and use it for the table. Repair the three rows using the amount, currency, and expected text each needs. Preserve the optional field used by the caller. All three files must compile.
Three price cases contain bad data. The table uses any[], so those mistakes are accepted. The caller also expects a PriceCase type. labels.ts shows how each expected price is formatted.
Check types asks the compiler to read your file. It lists each type error with its line. Your code does not run. The exercise is solved when there are no type errors.
Starter code
or press Ctrl EnterNot run yet
type check
Not run yetcases.ts
Expected result: no type errors.