Skip to content

Add msw with rates server snapshots#5611

Merged
peachbits merged 2 commits intodevelopfrom
matthew/msw-poc
Jun 17, 2025
Merged

Add msw with rates server snapshots#5611
peachbits merged 2 commits intodevelopfrom
matthew/msw-poc

Conversation

@peachbits
Copy link
Copy Markdown
Contributor

@peachbits peachbits commented Jun 3, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

@peachbits peachbits enabled auto-merge June 4, 2025 21:37
@samholmes
Copy link
Copy Markdown
Contributor

The maintainer updated https://www.npmjs.com/package/msw-snapshot so patch-package may not be needed if you can confirm it's included

Copy link
Copy Markdown
Contributor

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

I though this was good to go but then I as I was publishing there was a failed tests. I don't know how it ever worked with what jest is telling me.

I've made updates but to no avail

samholmes and others added 2 commits June 16, 2025 17:47
There are two snapshots because there are two rates servers and both need to be accounted for.

Right now, this only adds snapshots for the rates servers. To add them globally across all tests, we can update the following fields in jest.config.js:

setupFilesAfterEnv: ['./src/__mocks__/server.ts'],
 testEnvironment: 'node',
Copy link
Copy Markdown
Contributor

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

Fixed the issue by upgrading Jest. Seems like older version of Jest that we were using had a module resolution issue.

@peachbits peachbits merged commit dd3e251 into develop Jun 17, 2025
2 checks passed
@peachbits peachbits deleted the matthew/msw-poc branch June 17, 2025 00:58
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.

2 participants