Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 15, 2024 via pnpm

eslint-plugin-jest 27.4.0

ESLint rules for Jest
Package summary
Share
0
issues
8
licenses
92
MIT
18
ISC
9
BSD-2-Clause
10
other licenses
Apache-2.0
5
BSD-3-Clause
2
Python-2.0
1
0BSD
1
+ 1 more
Package created
6 Nov 2016
Version published
15 Sep 2023
Maintainers
9
Total deps
129
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
92 Packages, Including:
@aashutoshrathi/word-wrap@1.2.6
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@types/json-schema@7.0.15
@types/semver@7.5.8
@typescript-eslint/scope-manager@5.62.0
@typescript-eslint/types@5.62.0
@typescript-eslint/utils@5.62.0
@typescript-eslint/visitor-keys@5.62.0
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
array-union@2.1.0
balanced-match@1.0.2
brace-expansion@1.1.11
braces@3.0.2
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
dir-glob@3.0.1
escape-string-regexp@4.0.0
eslint-plugin-jest@27.4.0
eslint@8.57.0
fast-deep-equal@3.1.3
fast-glob@3.3.2
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@6.0.1
fill-range@7.0.1
find-up@5.0.0
flat-cache@3.2.0
globals@13.24.0
globby@11.1.0
graphemer@1.4.0
has-flag@4.0.0
ignore@5.3.1
import-fresh@3.3.0
imurmurhash@0.1.4

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
18 Packages, Including:
@ungap/structured-clone@1.2.0
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@5.1.2
glob-parent@6.0.2
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
lru-cache@6.0.0
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
semver@7.6.0
which@2.0.2
wrappy@1.0.2
yallist@4.0.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
@typescript-eslint/typescript-estree@5.62.0
eslint-scope@5.1.1
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
5 Packages, Including:
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
doctrine@3.0.0
eslint-visitor-keys@3.4.3
typescript@5.4.5

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
@humanwhocodes/object-schema@2.0.3
esquery@1.5.0

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

BSD Zero Clause License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@1.14.1

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.20.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
ⓘ This is a list of eslint-plugin-jest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@typescript-eslint/utils5.62.077.45 kBMIT
prod
eslint8.57.02.9 MBMIT
prod peer

Visualizations

Frequently Asked Questions

What does eslint-plugin-jest do?

eslint-plugin-jest is a powerful tool that provides specific ESLint rules for Jest, a widely used JavaScript testing framework. This plugin helps enforce best practices and code styling conventions while writing Jest tests, ensuring clean and readable codebase. It can automatically fix some rule violations and provides various configurations to tailor rule sets to fit specific project requirements.

How do you use eslint-plugin-jest?

To use eslint-plugin-jest, start by installing it in your project alongside ESLint. You can do this using yarn by running:

yarn add --dev eslint eslint-plugin-jest

If ESLint is installed globally, eslint-plugin-jest should also be installed globally.

The plugin is integrated into the ESLint configuration by adding 'jest' to the plugins section of the .eslintrc configuration file like so:

{
  "plugins": ["jest"]
}

You can then configure specific rules under the rules section. For example:

{
  "rules": {
    "jest/no-disabled-tests": "warn",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/valid-expect": "error"
  }
}

Remember to tell ESLint about the environment variables provided by Jest, which can be done as follows:

{
  "env": {
    "jest/globals": true
  }
}

You can find detailed information on all rule sets, configurations, usage instructions, and more in the official eslint-plugin-jest documentation.

Where are the eslint-plugin-jest docs?

The eslint-plugin-jest documentation is located in the project’s GitHub repository. You can conveniently access it at eslint-plugin-jest GitHub repo. The docs contain detailed information about installation, usage, different ESLint rules that the plugin provides, and configurations to customize them as per your project needs. Each rule in the list links to a separate document detailing what the rule does, how it works, and how to configure it.