Skip to content

it = it.skip breaks with mocha#35

Open
sjvans wants to merge 1 commit intomainfrom
naxios-and-mocha
Open

it = it.skip breaks with mocha#35
sjvans wants to merge 1 commit intomainfrom
naxios-and-mocha

Conversation

@sjvans
Copy link
Copy Markdown
Contributor

@sjvans sjvans commented Apr 28, 2026

during npx mocha --parallel bookstore/test, it = it.skip somehow leads to the test file being loaded again and loop only breaks because it is then undefined...

Co-authored-by: Copilot <copilot@github.com>
@sjvans sjvans requested review from chgeo and danjoa April 28, 2026 06:47

// Fetch API disallows GET|HEAD requests with body
if (axios.constructor.name === 'Naxios') it = it.skip
if (axios.constructor.name === 'Naxios') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This detection looks brittle. Could e.g. do it by checking for a native axios API.

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