Skip to content

Commit

Permalink
Merge pull request #4475 from weaveworks/dependabot/npm_and_yarn/jsdo…
Browse files Browse the repository at this point in the history
…m-26.0.0

build(deps-dev): Bump jsdom from 16.7.0 to 26.0.0
  • Loading branch information
gusevda authored Jan 11, 2025
2 parents c01aa6b + 85cdea8 commit 00ede1a
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 291 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
},
],
},
transformIgnorePatterns: ["/node_modules/(?!(yaml)/)"],
transformIgnorePatterns: ["/node_modules/(?!(yaml|@asamuzakjp\/css-color))"],
setupFilesAfterEnv: ["<rootDir>/setup-jest.ts"],
modulePathIgnorePatterns: ["<rootDir>/dist/"],
testEnvironment: "jsdom",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"jest-fail-on-console": "^3.3.1",
"jest-styled-components": "^7.2.0",
"jest-worker": "^29.7.0",
"jsdom": "^16.6.0",
"jsdom": "^26.0.0",
"parcel": "^2.13.3",
"prettier": "^3.4.2",
"process": "^0.11.10",
Expand Down
4 changes: 4 additions & 0 deletions setup-jest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { TextEncoder, TextDecoder } from 'util';
import failOnConsole from 'jest-fail-on-console'

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder as typeof global.TextDecoder;

failOnConsole()
Loading

0 comments on commit 00ede1a

Please sign in to comment.