woocommerce/plugins/woocommerce-blocks/tests/js/setup-fetch.js

3 lines
109 B
JavaScript

// This ensures you can use `window.fetch()` in your Jest tests.
require( 'jest-fetch-mock' ).enableMocks();