Skip to content

Avoid eagerly importing nock outside of testing#923

Merged
SergeAstapov merged 3 commits intoembermap:masterfrom
sergey-panov:fix-nock-eager-loading
Dec 3, 2025
Merged

Avoid eagerly importing nock outside of testing#923
SergeAstapov merged 3 commits intoembermap:masterfrom
sergey-panov:fix-nock-eager-loading

Conversation

@sergey-panov
Copy link
Contributor

This fixes an issue where nock is imported eagerly in the local ember app builds. As nock is activated in import (see https://github.com/nock/nock/blob/v15.0.0/index.js#L49), this can create an issue when nock v15 is used with native fetch, which leads to fastboot rendering failing on local due to failing API calls

@SergeAstapov SergeAstapov merged commit 4a713a5 into embermap:master Dec 3, 2025
3 of 15 checks passed
This was referenced Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants