Skip to content

Why does describe.skip still execute code in the suite? #3932

@oliversalzburg

Description

@oliversalzburg

In a test file I have code similar to this:

describe.skip( "skip this", () => {
	throw new Error( "was executed anyway" );
} );

I expected that describe.skip skips executing the entire suite, but it only skips executing tests declared in it. Is that by-design? I feel like the documentation is unclear about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions