Skip to content

feat: replace nock with msw - #10

Merged
mvantellingen merged 1 commit into
mainfrom
feat/msw-handlers
Aug 4, 2026
Merged

feat: replace nock with msw#10
mvantellingen merged 1 commit into
mainfrom
feat/msw-handlers

Conversation

@mvantellingen

Copy link
Copy Markdown
Member

The mock no longer owns an msw server: a second setupServer() instance
silently breaks the one owned by the test suite, so instead the handlers
are exposed through getHandlers()/registerHandlers() and registered on
the server the test suite already has. msw becomes a peer dependency.

Table lifecycle actions now wait for the table to leave CREATING /
UPDATING / DELETING before responding. dynalite schedules that
transition in a timer after its response callback, which was hidden by
nock's slower response path but not by msw's.

The mock no longer owns an msw server: a second setupServer() instance
silently breaks the one owned by the test suite, so instead the handlers
are exposed through getHandlers()/registerHandlers() and registered on
the server the test suite already has. msw becomes a peer dependency.

Table lifecycle actions now wait for the table to leave CREATING /
UPDATING / DELETING before responding. dynalite schedules that
transition in a timer after its response callback, which was hidden by
nock's slower response path but not by msw's.
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8270bb4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labdigital/mock-dynamodb Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mvantellingen
mvantellingen merged commit ef2b7e8 into main Aug 4, 2026
6 checks passed
@mvantellingen
mvantellingen deleted the feat/msw-handlers branch August 4, 2026 12:48
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