oclif / test

test helpers for oclif components
MIT License
17 stars 11 forks source link

typescript 5.4.2 generates invalid types for `test` #516

Closed mdonnalley closed 6 months ago

mdonnalley commented 6 months ago

Describe the bug Latest @oclif/test uses typescript 5.4.2, which causes consumers to run into compilation errors:

node_modules/@oclif/test/lib/index.d.ts:3:28 - error TS2315: Type 'Fancy' is not generic.

  3 export declare const test: import("fancy-test").Fancy<import("fancy-test/lib/types").Context, {
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4     skip: {
    ~~~~~~~~~~~
...
111     };
    ~~~~~~
112 }>;
    ~~

To Reproduce Install latest @oclif/test into @oclif/plugin-version and run yarn test

Expected behavior No compilation errors

Screenshots Screenshot 2024-03-11 at 10 16 45 AM

git2gus[bot] commented 6 months ago

This issue has been linked to a new work item: W-15226400