Nuns Playing Monopoly

    @factorial/frontend-stack-jest

    0.10.0 • Public • Published

    Factorial frontend stack jest

    @factorial/frontend-stack-jest is Neutrino middleware for the jest test runner

    Features

    • Uses @neutrinojs/jest
    • Looks for test files in __tests__ folder and by suffix *.spec.js|*.test.js

    Requirements

    • Node.js ^8.10 or 10+
    • Yarn v1.2.1+, or npm v5.4+
    • Neutrino v8

    Installation

    @factorial/frontend-stack-jest can be installed via the Yarn or npm clients.

    Usage

    yarn add neutrino @factorial/frontend-stack-jest --dev
    

    Then add the following your package.json.

    "scripts": {
      "test": "neutrino test --use @factorial/frontend-stack-jest",
    }

    Configuration

    You can change the default location where jest should look for test files by providing a regular expression in the middleware options.

    module.exports = {
      use: [
        [
          "@factorial/frontend-stack-jest",
          {
            testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$"
          }
        ],
      ],

    Keywords

    none

    Install

    npm i @factorial/frontend-stack-jest

    DownloadsWeekly Downloads

    6

    Version

    0.10.0

    License

    MIT

    Unpacked Size

    2.15 kB

    Total Files

    4

    Last publish

    Collaborators

    • andrewbeng89
    • krisimmig
    • mgrsskls
    • mlnmln
    • mmatull