Closed aqeelbhat closed 3 months ago
Hey @aqeelbhat it sounds like you will need to configure your jest to transpile ES module syntax (using Babel?). Jest needs CommonJS imports and the transpiler will help to transform import statements to require. We have upgraded the dependency and it probably introduced the import statements.
Example using Babel:
Install Babel Jest:
npm install --save-dev babel-jest @babel/preset-env
In the .babelrc file (maybe some more tweaking required):
{
"presets": ["@babel/preset-env"]
}
Update your Jest configuration in package.json or jest.config.js (maybe some more tweaking required):
{
"jest": {
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest"
}
}
}
Hey team, we attempted to upgrade stream-chat from version 8.2.1 to the latest one, but unfortunately, it caused our tests to fail. Please review the attached screenshots for more details.
We have decided to revert to version v8.2.1