Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to put debug() in multiple test cases #219

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

nvh95
Copy link
Owner

@nvh95 nvh95 commented Jul 22, 2022

Summary/ Motivation (TLDR;)

Now debug() is useful when we focus on one test. If users put debug() in multiple test cases, there will be conflicts

Related issues

Features

  • Allow user to use debug() in multiple test case (/preview)
  • Allow user to see failed tests after running all the tests (maybe /failed)

One thing I learn

To get testpath and test name, execute

const { testPath, currentTestName } = expect.getState();

Screenshots

/preview at main
/preview route
one snapshot

Pending issues/ Need discussions

@netlify
Copy link

netlify bot commented Jul 22, 2022

Deploy Preview for jest-preview-library canceled.

Name Link
🔨 Latest commit 72c4243
🔍 Latest deploy log https://app.netlify.com/sites/jest-preview-library/deploys/6335792bb8bb7700091b7016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant