Open jameskraus opened 2 years ago
Here's a PR which fixes the problem: https://github.com/half-halt/svg-jest/pull/8
Ah, seems like this is already fixed in https://github.com/half-halt/svg-jest/pull/5
@jameskraus this is fork with your suggested change
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
svg-jest@1.0.1
for the project I'm working on.Jest has changed the function signature for transformers from
(args) => string
to(args) => { 'code': string }
: https://jestjs.io/docs/28.x/upgrading-to-jest28#transformerHere is the diff that solved my problem:
This issue body was partially generated by patch-package.