Skip to content

Conversation

@machour
Copy link
Collaborator

@machour machour commented May 30, 2024

No description provided.

@machour machour merged commit 2816fdb into main May 30, 2024
@machour machour deleted the v2-msw branch May 30, 2024 10:14
@mikeybinns
Copy link

@machour Not sure if this is useful / where this could easily be documented, but this also works if your mocks files are written in typescript with some slight changes.

  1. Install tsx package npm i -D tsx
  2. Update mocks/index.cjs and mocks/handlers.cjs to .ts files
  3. Update dev command binode --import=tsx --import ./mocks/index.ts -- @remix-run/dev:remix vite:dev

@machour
Copy link
Collaborator Author

machour commented Sep 23, 2024

Hey @mikeybinns, thank you for the tip!
Do you want to open a PR to switch this example's mocks to typescript? Will happily review & merge.

@mikeybinns
Copy link

Submitted :)

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