5.0.0 • Published 5 years ago

@wldcordeiro-stuffz/jest-runner-prettier v5.0.0

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

@wldcordeiro-stuffz/jest-runner-prettier

Usage

Install

Install jest(it needs Jest 21+) and @wldcordeiro-stuffz/jest-runner-prettier

yarn add --dev jest @wldcordeiro-stuffz/jest-runner-prettier

# or with NPM

npm install --save-dev jest @wldcordeiro-stuffz/jest-runner-prettier

Add it to your Jest config

In your package.json

{
  "jest": {
    "runner": "@wldcordeiro-stuffz/jest-runner-prettier",
    "moduleFileExtensions": [
      "js",
      "jsx",
      "json",
      "ts",
      "tsx",
      "css",
      "less",
      "scss",
      "graphql",
      "md",
      "markdown"
    ],
    "testMatch": [
      "**/*.js",
      "**/*.jsx",
      "**/*.json",
      "**/*.ts",
      "**/*.tsx",
      "**/*.css",
      "**/*.less",
      "**/*.scss",
      "**/*.graphql",
      "**/*.md",
      "**/*.markdown"
    ]
  }
}

Or in jest.config.js

module.exports = {
  runner: '@wldcordeiro-stuffz/jest-runner-prettier',
  moduleFileExtensions: [
    'js',
    'jsx',
    'json',
    'ts',
    'tsx',
    'css',
    'less',
    'scss',
    'graphql',
    'md',
    'markdown'
  ],
  testMatch: [
    '**/*.js',
    '**/*.jsx',
    '**/*.json',
    '**/*.ts',
    '**/*.tsx',
    '**/*.css',
    '**/*.less',
    '**/*.scss',
    '**/*.graphql',
    '**/*.md',
    '**/*.markdown'
  ]
}

Run Jest

yarn jest
5.0.0

5 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago