Error while running unit tests with Jest #6167
Replies: 1 comment
-
Hi @pq-artem-i! I'm here to help you with your issue. I'm a bot that can assist you in solving bugs, answering questions, and becoming a contributor. To resolve the Jest error indicating an unexpected token 'export' when running your TypeScript unit tests, you need to ensure that Jest can handle ES module syntax. Here are the steps to configure Jest to work with ES modules:
These steps ensure that Jest uses |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Error:
Description
System Info
Node.js: v20.14.0
OS: Ubuntu 22.04.4 LTS x86_64
@langchain/openai: ^0.2.4
Beta Was this translation helpful? Give feedback.
All reactions