JSPM

eslint-plugin-tmaiadev-jest-rules

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q20860F
  • License ISC

This ESLint Plugin will enforce your Jest tests to follow the 'Given When Then' and the 'it should' patterns.

Package Exports

  • eslint-plugin-tmaiadev-jest-rules
  • eslint-plugin-tmaiadev-jest-rules/eslint-plugin-tmaiadev-jest-rules.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-tmaiadev-jest-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ESLint Plugin TMaiaDev Jest Rules

This ESLint Plugin will enforce your Jest tests to follow the "Given When Then" and the "it should" patterns.

Setup

  1. Install the dependency
npm install eslint-plugin-tmaiadev-jest-rules --save-dev
  1. Configure your .eslintrc file by adding the plugin to the plugins array, and the rules you want to the rules object.
{
    // ...
    plugins: [
        // ...
        "eslint-plugin-tmaiadev-jest-rules",
    ],
    rules: {
        "tmaiadev-jest-rules/enforce-gwt": "error",
        "tmaiadev-jest-rules/enforce-it-should": "error",
    },
}