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

No checkmark when test with same name exists in other describe block scope #648

Closed
ties-s opened this issue Jan 14, 2021 · 3 comments
Closed

Comments

@ties-s
Copy link

ties-s commented Jan 14, 2021

Environment

  1. node -v: v12.16.3

  2. npm -v: 6.14.4

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): jest@26.6.3

  4. Operating system: macOS 11.1

Prerequisite

  • are you able to run jest test from command line? yes
  • how do you run your tests from command line? (for example: npm run test or node_modules/.bin/jest) npm t

Steps to Reproduce

describe('Block A', () => {

	test('Test 1', () => {
		// expect ...
	}) 

	test('Test 2 in A', () => {
		// expect ...
	}) 

})

describe('Block B', () => {

	test('Test 1', () => {
		// expect ...
	}) 

	test('Test 2 in B', () => {
		// expect ...
	}) 

})

Expected Behavior

show checkmark next to all tests

Actual Behavior

no checkmark, but a circle, next to tests that have that also exists in another describe block

@connectdotz
Copy link
Collaborator

please give v4-alpha a try

@ties-s
Copy link
Author

ties-s commented Jan 19, 2021

I switched to another plugin for now.

@connectdotz
Copy link
Collaborator

no problem, this should already be fixed in v4. feel free to reopen if otherwise...

@connectdotz connectdotz mentioned this issue Jan 19, 2021
15 tasks
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

No branches or pull requests

2 participants