Skip to content

Commit eb28aaf

Browse files
committedMay 6, 2023
fix: quick error message improvement
1 parent 9ea1a64 commit eb28aaf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎lib/helpers/printJestWarning.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ if (typeof jest !== 'undefined' && !process.env.SUPPRESS_JEST_WARNINGS) {
77
utils.warn('Mongoose: looks like you\'re trying to test a Mongoose app ' +
88
'with Jest\'s default jsdom test environment. Please make sure you read ' +
99
'Mongoose\'s docs on configuring Jest to test Node.js apps: ' +
10-
'https://mongoosejs.com/docs/jest.html');
10+
'https://mongoosejs.com/docs/jest.html. Set the SUPPRESS_JEST_WARNINGS to true ' +
11+
'to hide this warning.');
1112
}
1213

1314
if (setTimeout.clock != null && typeof setTimeout.clock.Date === 'function') {
1415
utils.warn('Mongoose: looks like you\'re trying to test a Mongoose app ' +
1516
'with Jest\'s mock timers enabled. Please make sure you read ' +
1617
'Mongoose\'s docs on configuring Jest to test Node.js apps: ' +
17-
'https://mongoosejs.com/docs/jest.html');
18+
'https://mongoosejs.com/docs/jest.html. Set the SUPPRESS_JEST_WARNINGS to true ' +
19+
'to hide this warning.');
1820
}
1921
}

0 commit comments

Comments
 (0)
Please sign in to comment.