We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 774d457 commit 1b40d3fCopy full SHA for 1b40d3f
1 file changed
packages/expect/src/index.js
@@ -296,4 +296,8 @@ expect.getState = getState;
296
expect.setState = setState;
297
expect.extractExpectedAssertionsErrors = extractExpectedAssertionsErrors;
298
299
+// Expose JestAssertionError for custom matchers
300
+// This enables them to preserve the stack for specific errors
301
+expect.JestAssertionError = JestAssertionError;
302
+
303
module.exports = (expect: Expect);
0 commit comments