Unmock

Unmock

  • Docs
  • GitHub

›Advanced Usage

Introduction

  • Getting Started
  • A Motivating Example
  • More Resources

Services

  • Defining Services
  • Using OpenAPI

Basic Usage

  • Great Expectations
  • Initializing Mocks
  • Fuzz Testing

Advanced Usage

  • Jest Reporter
  • Configuration

Guides

  • React Native

Community

  • Code of Conduct

Roadmap

  • Where we're going
  • Contributing
  • About us
Edit

Configuring Unmock

Adding allowed hosts

By default, Unmock intercepts all traffic to internet. If you want to allow communication with specific hosts, you can add a hosts via unmock.allowedHosts.add():

// Allow communication with `*.googleapis.com`
unmock.allowedHosts.add("*.googleapis.com");
← Jest ReporterReact Native →
  • Adding allowed hosts
Unmock
Docs
IntroductionExamples
Community
GitterTwitter
More
GitHubCode of Conduct
Copyright © 2019 Meeshkan