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

Implement describe.skip #2836

Merged
merged 4 commits into from
May 11, 2023
Merged

Implement describe.skip #2836

merged 4 commits into from
May 11, 2023

Conversation

blackmann
Copy link
Contributor

No description provided.

@@ -48,7 +48,7 @@ namespace WebCore {
const JSC::ConstructAbility s_bundlerPluginRunOnResolvePluginsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
const JSC::ConstructorKind s_bundlerPluginRunOnResolvePluginsCodeConstructorKind = JSC::ConstructorKind::None;
const JSC::ImplementationVisibility s_bundlerPluginRunOnResolvePluginsCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_bundlerPluginRunOnResolvePluginsCodeLength = 3593;
const int s_bundlerPluginRunOnResolvePluginsCodeLength = 3619;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This and other changes in this file were auto-generated. I suppose that's expected?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah this was fixed on main before you rebased last

});
});

describe.skip("skip test outer", () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add a test that checks we also skip beforeAll, afterAll, beforeEach, and afterEach (assuming Jest does that too)?

@@ -3635,7 +3635,7 @@ pub const DescribeScope = struct {
this.pending_tests.unset(test_id);

if (!skipped) {
const afterEach = this.execCallback(globalThis, .afterEach);
const afterEach = this.runCallback(globalThis, .afterEach);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incidentally resolves: #2528

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

@Jarred-Sumner
Copy link
Collaborator

This looks great. Thank you. There will be some unrelated test failures, don't worry about those. Let's merge after tests run

@Jarred-Sumner Jarred-Sumner merged commit 4b79b37 into oven-sh:main May 11, 2023
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.

2 participants