Type 'Promise<void>' is not assignable to type 'never'.
Closed this issue · 0 comments
dtuite commented
I get this error when I add this plugin to the plugins
directory of a Backstage app and run yarn install && yarn tsc && yarn build
.
plugins/backstage-plugin-jira/src/components/JiraCard/JiraCard.test.tsx:104:7 - error TS2322: Type 'Promise<void>' is not assignable to type 'never'.
104 expect(
~~~~~~~
105 await rendered.findByText(/status 403: Forbidden/)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 ).toBeInTheDocument()
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@testing-library/dom/types/wait-for.d.ts:10:13
10 callback: () => T extends Promise<any> ? never : T,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The expected type comes from the return type of this signature.
Found 1 error.
error Command failed with exit code 2.