Replies: 1 comment
-
@JaapSingh Looks like you are having troubles using the v4 for d3-scale which is an ES6 module. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I recently imported the @FluentUI\react-charting module into my UX code so I could create a sparkline chart, and everything compiles and renders correctly.
However, I added a snapshot test and when I tried to generate a snapshot via "yarn test -u", I get the following error:
I did some research and I think it might be because Node.js cannot handle ES6 modules, and the way to get around this is to ensure that we compile files in the node_modules. I then confirmed that
transformIgnorePatterns: ["node_modules/(?!@fluentui)"]
is present in my jest.config.js fileDoes anyone have any ideas as to what I can try to get these snapshot tests to work?
Beta Was this translation helpful? Give feedback.
All reactions