Neighborly Package Megalodon
    Have ideas to improve npm?Join in the discussion! »

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

    2.0.2 • 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.

    Keywords

    none

    Install

    npm i @shopify/address-mocks

    DownloadsWeekly Downloads

    32,462

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    3.67 MB

    Total Files

    62

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar