Skip to content

V3#30

Merged
SerhiyGreench merged 2 commits into
masterfrom
v3
Jul 9, 2026
Merged

V3#30
SerhiyGreench merged 2 commits into
masterfrom
v3

Conversation

@SerhiyGreench

Copy link
Copy Markdown
Contributor

No description provided.

Two independent issues broke the suite after bumping @imqueue/core to
^3.2.0 (now an ES module consumed from CJS via require(esm)):

1. The ioredis mock registered only a default export; core's ESM sources
   bind the named { Redis } import, so linking failed with 'does not
   provide an export named Redis'. The mock now registers both shapes.

2. node:test module mocks evaluate asynchronously, and the synchronous
   require(esm) path cannot wait for them — the mocked graph loads with
   export names present but values unbound (core_1.Redis undefined). The
   new test/warmup.mjs preload (wired via --import) registers the mocks
   and fully awaits the @imqueue/core graph before any spec runs, so CJS
   specs then require() the cached, bound namespace.

Also switches moduleMockOptions to the documented defaultExport /
namedExports pair with cache:false — the undocumented exports option and
cache:true value binding both broke on the Node 24.17/24.18 loader
changes (same fix as imqueue/core@5137ffa).

Verified: 197/197 on Node 24.16.0 and in docker node:24 (24.18.0);
includes the @imqueue/core ^3.2.0 dependency bump the fixes target.
@SerhiyGreench SerhiyGreench merged commit 4d8ce9d into master Jul 9, 2026
4 checks passed
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.

1 participant