unexpected-mxhr

Unexpected plugin for mocking XHR

Usage no npm install needed!

<script type="module">
  import unexpectedMxhr from 'https://cdn.skypack.dev/unexpected-mxhr';
</script>

README

Unexpected-mXHR

NPM version Build Status Coverage Status

Plugin for Unexpected that allows mocking browser based XHR requests using the same declarative syntax as unexpected-mitm.

Read the documentation.