Skip to content

it = it.skip breaks with mocha#35

Merged
danjoa merged 2 commits into
mainfrom
naxios-and-mocha
May 5, 2026
Merged

it = it.skip breaks with mocha#35
danjoa merged 2 commits into
mainfrom
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
Comment thread test/protocols/hcql-adapter.test.js Outdated

// 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.

Copy link
Copy Markdown
Member

@danjoa danjoa left a comment

Choose a reason for hiding this comment

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

Confirmed the behavior on mocha → addressed it even simpler, which avoids any assumptions on internal implementations of it and it.skip.

@danjoa danjoa merged commit 5bb6b24 into main May 5, 2026
2 checks passed
@danjoa danjoa deleted the naxios-and-mocha branch May 5, 2026 16:23
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.

3 participants