Closed rickstaa closed 2 years ago
From the hints:
By default "node_modules" folder is ignored by transformers.
To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
@ntkme Your right! Thanks, I found the following solution, which solves my problem.
When I try to use this package inside an ES6 typescript project, I receive the
SyntaxError: Cannot use import statement outside a module
(see error below). I now solved this by mocking thereact-github-btn
package but wanted to let you know that something goes wrong.How to reproduce
npm i
.npm run test
.