@mediacurrent/jest-config-gatsby

0.0.3 • Public • Published

jest-config-gatsby

Jest configuration with Gatsby and Storybook can be tricky. This is Mediacurrent's default setup.

Install

npm install --save-dev @mediacurrent/jest-config-gatsby

Extend

To use it without changes, create a jest.config.js file with the following code:

const config = require('@mediacurrent/jest-config-gatsby')
module.exports = config

Override

To use the base config, but override some settings, your jest.config.js should look like this:

const config = require('@mediacurrent/jest-config-gatsby')
module.exports = {
  ...config,
  // Overrides
  'rootDir': './',
  "testEnvironment": "node"
}

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mediacurrent/jest-config-gatsby

    Weekly Downloads

    0

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    4.15 kB

    Total Files

    11

    Last publish

    Collaborators

    • apmsooner
    • shrop
    • jrcallicott
    • joestewart
    • mediacurrent-it