Skip to content

Commit 0020ea0

Browse files
BilalQamar95muselesscreator
authored andcommitted
fix: updated jest to resolve word-wrap ReDoS vulnerability (#411)
1 parent 4b0b1fb commit 0020ea0

File tree

3 files changed

+3542
-4584
lines changed

3 files changed

+3542
-4584
lines changed

config/jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if (fs.existsSync(appEnvConfigPath)) {
1212
}
1313

1414
module.exports = {
15-
testURL: 'http://localhost/',
15+
testEnvironment: 'jsdom',
16+
testEnvironmentOptions: {
17+
url: 'http://localhost/',
18+
},
1619
setupFiles: [
1720
path.resolve(__dirname, 'jest/setupTest.js'),
1821
],

0 commit comments

Comments
 (0)