@shopify/address-mocks
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

@shopify/address-mocks

Build Status Build Status License: MIT npm version npm bundle size (minified + gzip)

Address mocks for @shopify/address.

Installation

yarn add @shopify/address-mocks

Testing

If your component uses the @shopify/address package and you want to mock API calls, you can use the following:

import {fetch} from '@shopify/jest-dom-mocks';
import {mockCountryRequests} from '@shopify/address-mocks';

beforeEach(mockCountryRequests);
afterEach(fetch.restore);

Note: Only FR / JA and EN are mocked.

/@shopify/address-mocks/

    Package Sidebar

    Install

    npm i @shopify/address-mocks

    Weekly Downloads

    5,904

    Version

    3.3.1

    License

    MIT

    Unpacked Size

    3.24 MB

    Total Files

    55

    Last publish

    Collaborators

    • jaykay101
    • mishsmelle
    • shopify-dep
    • jaimie.rockburn
    • shopify-admin
    • maryharte
    • pmoloney89
    • netlohan