dominicfraser / NockExamples

HTTP request mocking with Nock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an example repo to go along with this 'how to' article.

It uses Nock alongside a Random User API.

Linting:

For linting eslint-config-skyscanner has been used, along with prettier. This is not included in each directory, if you wish to add it duplicate the .eslintrc and .prettierrc and run:

(
    export PKG=eslint-config-skyscanner;
    npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev
    "$PKG@latest"
)

to setup eslint, and then the following to integrate prettier:

npm install -D eslint-config-prettier eslint-plugin-prettier prettier

About

HTTP request mocking with Nock


Languages

Language:JavaScript 100.0%