Skip to content

Commit

Permalink
Update Packages (#29)
Browse files Browse the repository at this point in the history
* Update Packages

* Pin Cheerio due to Enzyme error.
  • Loading branch information
jluterek authored Sep 11, 2024
1 parent cef8f35 commit 1709cb5
Show file tree
Hide file tree
Showing 4 changed files with 3,399 additions and 2,972 deletions.
4 changes: 4 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { ReadableStream } from 'node:stream/web';

// Polyfill `ReadableStream` in the Jest environment
global.ReadableStream = ReadableStream;
1 change: 1 addition & 0 deletions jest.test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ process.env.ENABLE_NEW_JSX_TRANSFORM = 'true';
*/
module.exports = {
preset: '@commercetools-frontend/jest-preset-mc-app/typescript',
setupFiles: ['./jest.setup.js'],
};
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
"@types/eslint": "<9",
"@types/react": "<18",
"eslint": "^8.57.0",
"eslint-formatter-pretty": "^6.0.1",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down Expand Up @@ -93,11 +95,12 @@
"@types/eslint": "<9",
"@types/react": "<18",
"@types/react-dom": "<18",
"@types/react-router": "<6"
"@types/react-router": "<6",
"cheerio": "=1.0.0-rc.3"
},
"devDependencies": {
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.8",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.8",
"eslint-react": "0.0.4"
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 1709cb5

Please sign in to comment.