Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Two Jest integration tests do not pass for node official releases and current master:
integration_tests/__tests__/show_config.test.js
and
integration_tests/__tests__/stack_trace_no_captureStackTrace.js
.
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install
and yarn test
.
set PATH to node
yarn
(or yarn --ignore-engines
for local build) and yarn test
from within the Jest dir
What is the expected behavior?
Tests passing
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest: master e9a6f71
node: master c3cb0ed (same happens for release branches, tested for 6+)
yarn: 0.27.5
macOS Sierra
What fixed the problem for me:
- update snapshot for
show_config.test.js
- replace
expect(stderr).toMatch(/\s+at\sJestAssertionError\s.*/);
with the call
expect(stderr).toMatch( /\s+at\s(?:.+?)\s\(__tests__\/runtime_error.test\.js/, );
instack_trace_no_captureStackTrace.js
.RunJest
does not
seem to returnat JestAssertionError
string, afaiu (might be wrong :)).