@testing-library/react version: 10.2.0import { render } from "@testing-library/react/pure";
TS7016: Could not find a declaration file for module '@testing-library/react/pure'.
https://codesandbox.io/s/nifty-tharp-3de0h?file=/src/index.ts:61-114
This is happening because the pure.d.ts file is not next to pure.js, it's in a types folder and TS doesn't know how to link it. It's OK for the entry index because there's a pkg.types pointing to it, but importing something else requires the type file to be colocated.
I think the files could either be moved next to their corresponding .js files and the build step updated to include them, or have a separate build step that does cp types/*.d.ts dist/.
I think this should fix it: https://github.com/testing-library/react-testing-library/pull/696
Could you confirm?
:tada: This issue has been resolved in version 10.2.1 :tada:
The release is available on:
npm package (@latest dist-tag)Your semantic-release bot :package::rocket:
Thanks @NiGhTTraX for catching this!