Socket
Socket
Sign inDemoInstall

@shopify/address-mocks

Package Overview
Dependencies
79
Maintainers
27
Versions
118
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @shopify/address-mocks

Address mocks for `@shopify/address`


Version published
Weekly downloads
20K
decreased by-14.05%
Maintainers
27
Install size
19.2 MB
Created
Weekly downloads
 

Readme

Source

@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.

FAQs

Last updated on 01 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc