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 May 9, 2024 via pnpm

jest-util 29.7.0

This packages is a collection of utilities and helper functions
Package summary
Share
0
issues
2
licenses
19
MIT
1
ISC
Package created
16 Feb 2016
Version published
12 Sep 2023
Maintainers
3
Total deps
20
Direct deps
6
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
19 Packages, Including:
@jest/schemas@29.6.3
@jest/types@29.6.3
@sinclair/typebox@0.27.8
@types/istanbul-lib-coverage@2.0.6
@types/istanbul-lib-report@3.0.3
@types/istanbul-reports@3.0.4
@types/node@20.12.11
@types/yargs-parser@21.0.3
@types/yargs@17.0.32
ansi-styles@4.3.0
chalk@4.1.2
ci-info@3.9.0
color-convert@2.0.1
color-name@1.1.4
has-flag@4.0.0
jest-util@29.7.0
picomatch@2.3.1
supports-color@7.2.0
undici-types@5.26.5

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
1 Packages, Including:
graceful-fs@4.2.11
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

6
All Dependencies CSV
β“˜ This is a list of jest-util 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@jest/types29.6.38 kBMIT
prod
@types/node20.12.111.96 MBMIT
prod
chalk4.1.211.31 kBMIT
prod
ci-info3.9.07.21 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
picomatch2.3.123.72 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jest-util do?

The jest-util, now marked as '@jest/utils', is a collection of utility and helper functions designed to tailor a smoother and more productive experience for Jest users. These utilities are a set of versatile tools that accomplish various tasks which include formatting time values, deep copying, throwing custom errors, ensuring compatibility between ESM and CommonJS modules amongst many others. From performing checks to see if the environment is suitable for terminal interactions to functions designed for interactive command-line tools, @jest/utils has a wide range of functionalities that aim to enhance and simplify a wide spectrum of coding tasks.

How do you use jest-util?

Using the jest-util package (now '@jest/utils') isn't a one-size-fits-all process, given that it provides a plethora of utility functions designed for diverse tasks. For example, if you should need to create a directory, employ the 'createDirectory' function. Here's an illustrative piece of code:

const { createDirectory } = require('@jest/utils');
createDirectory('./new_directory');

Likewise, to import a module and ensure its compatibility between ESM and CommonJS modules, you would use 'interopRequireDefault' function. Here's an example:

const { interopRequireDefault } = require('@jest/utils');
const someModule = interopRequireDefault(require('./someModule'));

So, make sure to refer to the specific function you want to use and integrate it accordingly.

Where are the jest-util docs?

For complete and comprehensive documentation on the jest-util tool now under the banner of '@jest/utils', you can head to Jest's GitHub repository at https://github.com/jestjs/jest. There, you'll find detailed descriptions and usage examples for all the utility functions that this package offers, from 'ErrorWithStack' and 'deepCyclicCopy' to 'requireOrImportModule' and beyond. This wealth of information is designed to help users take full advantage of these utilities, making Jest a more potent testing framework.