All Projects → dangreenisrael → Eslint Plugin Jest Formatting

dangreenisrael / Eslint Plugin Jest Formatting

Licence: mit
ESLint rules for formatting test suites written for jest.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Eslint Plugin Jest Formatting

Eslint Plugin Jest
ESLint plugin for Jest
Stars: ✭ 699 (+884.51%)
Mutual labels:  eslint-plugin, jest
Expect Playwright
Jest utility matcher functions to simplify expect statements for the usage with Playwright.
Stars: ✭ 66 (-7.04%)
Mutual labels:  jest
React Boilerplate
Production-ready boilerplate for building universal web apps with React and Redux
Stars: ✭ 53 (-25.35%)
Mutual labels:  jest
React Native Learning Resources
Collection of some good resources for react-native ✨ 🔥 💥
Stars: ✭ 61 (-14.08%)
Mutual labels:  jest
Testing Jest Enzyme
List of components and tests for post "React Components Testing with Jest & Enzyme"
Stars: ✭ 54 (-23.94%)
Mutual labels:  jest
Sowing Machine
🌱A React UI toolchain & JSX alternative
Stars: ✭ 64 (-9.86%)
Mutual labels:  eslint-plugin
Node Typescript Boilerplate
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
Stars: ✭ 1,061 (+1394.37%)
Mutual labels:  jest
Lwc Recipes
A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform
Stars: ✭ 1,147 (+1515.49%)
Mutual labels:  jest
Artemis Dev Tool
An Apollo GraphQL Query Schema Testing Tool
Stars: ✭ 66 (-7.04%)
Mutual labels:  jest
Svelte Jester
A Jest transformer for Svelte - compile your components before importing them into tests.
Stars: ✭ 59 (-16.9%)
Mutual labels:  jest
Jest Sonar Reporter
A Sonar test reporter for Jest.
Stars: ✭ 57 (-19.72%)
Mutual labels:  jest
Craco Alias
A craco plugin for automatic aliases generation for Webpack and Jest
Stars: ✭ 56 (-21.13%)
Mutual labels:  jest
Ngrx Testing
Testing NgRx with jest and jasmine-marbles
Stars: ✭ 64 (-9.86%)
Mutual labels:  jest
Marvelheroes
Marvel Heroes
Stars: ✭ 54 (-23.94%)
Mutual labels:  jest
Ifme
Free, open source mental health communication web app to share experiences with loved ones
Stars: ✭ 1,147 (+1515.49%)
Mutual labels:  jest
Js Toolbox
CLI tool to simplify the development of JavaScript apps/libraries with little to no configuration. (WORK IN PROGRESS/PACKAGE NOT PUBLISHED).
Stars: ✭ 53 (-25.35%)
Mutual labels:  jest
Nuxt Jest Puppeteer
🚀 Nuxt.js zero configuration tests, run with Jest and Puppetter
Stars: ✭ 57 (-19.72%)
Mutual labels:  jest
React Adventure
⛰ React high-ending architecture & patterns ready for use. Made for big and small projects. PWA Ready.
Stars: ✭ 62 (-12.68%)
Mutual labels:  jest
Generator Rn Toolbox
The React Native Generator to bootstrap your apps
Stars: ✭ 1,155 (+1526.76%)
Mutual labels:  jest
React Native Template Typescript
👾 Clean and minimalist React Native template for a quick start with TypeScript.
Stars: ✭ 1,148 (+1516.9%)
Mutual labels:  jest

CircleCI npm monthly downloads

eslint-plugin-jest-formatting

This package provides ESLint rules for jest test suites.

This project aims to provide formatting rules (auto-fixable where possible) to ensure consistency and readability in jest test suites.

Like this plugin? Say thanks with a ⭐️

Note: The master version may not be the version deployed to npm. Please treat https://www.npmjs.com/package/eslint-plugin-jest-formatting as the cannonical source for docs.

Installation

You'll first need to install ESLint:

$ yarn add eslint --dev

Next, install eslint-plugin-jest-formatting:

$ yarn add eslint-plugin-jest-formatting --dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-jest-formatting globally.

Usage

Add jest-formatting to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["jest-formatting"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "jest-formatting/padding-around-describe-blocks": 2,
    "jest-formatting/padding-around-test-blocks": 2
  }
}

or

You can use our "recommended" settings which enables most of the rules for you

{
  "extends": ["plugin:jest-formatting/recommended"]
}

We also support a "strict" settings which enabled all of the rules for you

{
  "extends": ["plugin:jest-formatting/strict"]
}

Rule Documentation

Related Projects

eslint-plugin-jest

This provides an extensive set of jest eslint rules

https://github.com/jest-community/eslint-plugin-jest

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].