Skip to content

dominicfraser/NockExamples

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published