Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 690 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 690 Bytes

service-mocker-polyfills

All the polyfills you may need to run service-mocker.

Install

npm i service-mocker-polyfills --save-dev

Usage

Import all polyfills

// make sure polyfill is imported first
import 'service-mocker-polyfills';

// other stuff
import { createClient } from 'service-mocker/client';

Import specific polyfill

import 'service-mocker-polyfills/promise';
import 'service-mocker-polyfills/fetch';
import 'service-mocker-polyfills/url';

Contents