uppy icon indicating copy to clipboard operation
uppy copied to clipboard

@uppy/core: add type tests

Open Murderlon opened this issue 9 months ago • 1 comments

Ref: #4764

Some tests to make sure types keep working as expected.

Murderlon avatar May 08 '24 11:05 Murderlon

Diff output files
No diff

github-actions[bot] avatar May 08 '24 11:05 github-actions[bot]

Can we also add test cases with type errors, to validates that errors would be reported?

Which scenarios do you have in mind? Uppy can throw in some cases but that doesn't have much to do with conditional types.

Murderlon avatar May 29 '24 11:05 Murderlon

Some @ts-expect-error directive over e.g. a call where a mandatory option is missing.

aduh95 avatar May 29 '24 12:05 aduh95

Keeping it simple for now. There are many, many options for which we could test endless invalid combinations. And we have Uppy.test.ts already catching a lot of options and how they're used.

Murderlon avatar May 30 '24 07:05 Murderlon