You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/, );
in stack_trace_no_captureStackTrace.js. RunJest does not
seem to return at JestAssertionError string, afaiu (might be wrong :)).
The text was updated successfully, but these errors were encountered:
AnnaMag
changed the title
make integration_tests/__tests__/* pass for node releases/master
make integration_tests pass for node releases and master
Jul 18, 2017
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
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
andintegration_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
andyarn test
.set PATH to node
yarn
(oryarn --ignore-engines
for local build) andyarn test
from within the Jest dirWhat 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:
show_config.test.js
expect(stderr).toMatch(/\s+at\sJestAssertionError\s.*/);
with the call
expect(stderr).toMatch( /\s+at\s(?:.+?)\s\(__tests__\/runtime_error.test\.js/, );
in
stack_trace_no_captureStackTrace.js
.RunJest
does notseem to return
at JestAssertionError
string, afaiu (might be wrong :)).The text was updated successfully, but these errors were encountered: