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
I'm experiencing a situation where when I choose to Run, or Debug a single test, it actually runs two tests.
For example, when I choose Debug here:
It will run the test I chose, and the one below it. If seems to pick up this second test based on the test description string -- since they both begin with similar text: "creates a user account".
describe('Test a module', () => {
test('creates a user account', () => {
// ..... test code here
});
test('creates a user account without an address', () => {
// ..... test code here
});
});
Is this by design? Is there a configuration option that I could tweak so only tests I choose are run?
The text was updated successfully, but these errors were encountered:
I think what we would need here is to make the -t param more precise.
the runner adds -t 'creates a user account', which in your example matches both test cases. maybe better would be -t '^creates a user account$'.
I'm experiencing a situation where when I choose to Run, or Debug a single test, it actually runs two tests.
For example, when I choose Debug here:
It will run the test I chose, and the one below it. If seems to pick up this second test based on the test description string -- since they both begin with similar text: "creates a user account".
Is this by design? Is there a configuration option that I could tweak so only tests I choose are run?
The text was updated successfully, but these errors were encountered: