[go: up one dir, main page]

Page MenuHomePhabricator

Future-Proof MSW Tests against Regressions due to MSW Version
Open, MediumPublic

Description

Description

The tests that rely on MSW are sensitive to changes in MSW's version. API calls respond differently as of different cuts of MSW.

To see how tests are failing, do the following:

  • pin the msw version to something higher (e.g., change 2.0.11 to 2.4.8)
  • npm i
  • npm run test:nolint
  • watch 'em fail

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • change testing strategy to account for msw API changes
    • possibly with a better wrapper for the msw methods
    • possibly by not testing full object equivalence

Completion checklist