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

feat: add flagged describe #433

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

Conversation

victormejia
Copy link

No description provided.

@victormejia
Copy link
Author

@kellyselden re-did the PR to cherry-pick Preston's changes, and added tests. Thanks!

@@ -136,7 +136,7 @@ describe(function() {
it('works', async function() {
let stats = await this.runTests();

expect(stats.passes).to.equal(1);
expect(stats.passes).to.equal(4);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it was working, I would expect this to be 2, not 4?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So before the tests I added, there was one describe with three specs in there, I suspected it was counting the successful describe group of specs.

describe('flag - it', function() {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be counting passed tests. Before your change, it was counting the test with '!flag1' because no flags were supplied in the test.

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

3 participants