0.10.0 • Published 4 years ago

@factorial/frontend-stack-jest v0.10.0

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

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?$"
      }
    ],
  ],
0.11.0

4 years ago

0.10.0

4 years ago

0.9.1

5 years ago

0.8.5-alpha.0

5 years ago

0.8.4

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago