Problem/Motivation

Currently HTTP requests are being mocked in the UI components with miragejs.
Migrate JS has only a 0.1 release and has around 280k downloads a week.
MSW has a 2.3 release and around 2.8m downloads a week.

Steps to reproduce

Proposed resolution

Switch to msw for tests and mocking

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

larowlan created an issue. See original summary.

larowlan’s picture

Component: Code » Page builder
Issue tags: -page builder
wim leers’s picture

Assigned: Unassigned » jessebaker

I doubt @jessebaker feels strongly about this. I'd definitely welcome an MR, but let's hear if he has a reason to not do this.

larowlan’s picture

Status: Active » Needs review

There's an MR there for consideration

larowlan’s picture

This is also setup for use in tests so we can start tests - #3450306: Add component tests using testing-library

jessebaker’s picture

Fully in favour - miragejs was only intended as a super quick temporary solution so that I could work on the front end completely isolated from any backend requirements (and so I could try out a shiny new thing!).

I've approved your MR - it looks like a more robust and less temporary solution for tests etc.

wim leers’s picture

Assigned: jessebaker » bnjmnm

Now just needs @bnjmnm's approval.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Ready for Ben to sign off & merge :)

wim leers’s picture

Assigned: bnjmnm » Unassigned
Status: Reviewed & tested by the community » Fixed

🚢

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.