ts-jest/preset/js-with-ts not working #4085
Replies: 5 comments 1 reply
-
If you are using |
Beta Was this translation helpful? Give feedback.
-
@ahnpnl Thanks for quick response. }; |
Beta Was this translation helpful? Give feedback.
-
Hi @ahnpnl Can you please help me with it, so I can write my test cases. Thanks :) |
Beta Was this translation helpful? Give feedback.
-
You can use this branch #4083 there is a project configured it |
Beta Was this translation helpful? Give feedback.
-
@ahnpnl I've used that project and I've put my third party control into App.tsx which is in react-app example and installed all requires npm packages and then tried npm test but it still giving me same error. Can you please help me out, because same jsWithTs preset transform I was using before when I first get this error and it worked at that time. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using bryntum scheduler which is third party and for that component it's not transforming my files, even if I am using jsWithTs.transform in my jest.config.js. I was getting this error before but by using this preset the error went away but it started appearing again.
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
D:\Access.FMS.Scheduler.UI\Access.FMS.Scheduler.UI\node_modules@bryntum\scheduler-react\lib\index.js:1
({"Object.":function(module,exports,require,__dirname,__filename,jest){export * from './BryntumFullscreenButton';
"jest": "^29.1.0",
"ts-jest": "^29.1.0",
Beta Was this translation helpful? Give feedback.
All reactions