Skip to content

Commit

Permalink
Updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Nov 15, 2018
1 parent 2df266c commit 67391c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# Motivation

**Problems of traditional mocking:**

* Often relies a mocking server which you need to run and maintain;
* Doesn't really mock the requests, rather **replaces** the requests so they go to the mocking server, instead of the production server;
* Brings extra dependencies to your application, instead of being a dependency-free development tool;

# Getting started

## Install

```bash
```

## Configure routes

Expand Down Expand Up @@ -36,4 +46,4 @@ msw.start()

# How does this work?

We use a Service Worker that analyzes the outgoing requests and matches them against the specified mocking routes. Whenever a request matches a route, the handler function is executed, and the mock is being sent as a response to that request.
MSW uses a Service Worker that analyzes the outgoing requests and matches them against the specified mocking routes. Whenever a request matches a route, the handler function is executed, and the mock is being sent as a response to that request.

0 comments on commit 67391c8

Please sign in to comment.