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 Jun 13, 2024 via pnpm

jest-runtime 29.7.0

Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
157
MIT
19
ISC
8
BSD-3-Clause
6
other licenses
Apache-2.0
4
CC-BY-4.0
1
BSD-2-Clause
1
Package created
19 May 2016
Version published
12 Sep 2023
Maintainers
3
Total deps
190
Direct deps
22
License
MIT

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: @jest/globals@29.7.0 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @jest/globals@29.7.0 & others
Collapse
Expand

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
157 Packages, Including:
@babel/code-frame@7.24.7
@babel/compat-data@7.24.7
@babel/core@7.24.7
@babel/generator@7.24.7
@babel/helper-compilation-targets@7.24.7
@babel/helper-environment-visitor@7.24.7
@babel/helper-function-name@7.24.7
@babel/helper-hoist-variables@7.24.7
@babel/helper-module-imports@7.24.7
@babel/helper-module-transforms@7.24.7
@babel/helper-plugin-utils@7.24.7
@babel/helper-simple-access@7.24.7
@babel/helper-split-export-declaration@7.24.7
@babel/helper-string-parser@7.24.7
@babel/helper-validator-identifier@7.24.7
@babel/helper-validator-option@7.24.7
@babel/helpers@7.24.7
@babel/highlight@7.24.7
@babel/parser@7.24.7
@babel/plugin-syntax-async-generators@7.8.4
@babel/plugin-syntax-bigint@7.8.3
@babel/plugin-syntax-class-properties@7.12.13
@babel/plugin-syntax-import-meta@7.10.4
@babel/plugin-syntax-json-strings@7.8.3
@babel/plugin-syntax-jsx@7.24.7
@babel/plugin-syntax-logical-assignment-operators@7.10.4
@babel/plugin-syntax-nullish-coalescing-operator@7.8.3
@babel/plugin-syntax-numeric-separator@7.10.4
@babel/plugin-syntax-object-rest-spread@7.8.3
@babel/plugin-syntax-optional-catch-binding@7.8.3
@babel/plugin-syntax-optional-chaining@7.8.3
@babel/plugin-syntax-top-level-await@7.14.5
@babel/plugin-syntax-typescript@7.24.7
@babel/template@7.24.7
@babel/traverse@7.24.7
@babel/types@7.24.7
@istanbuljs/schema@0.1.3
@jest/console@29.7.0
@jest/environment@29.7.0
@jest/expect-utils@29.7.0
@jest/expect@29.7.0
@jest/fake-timers@29.7.0
@jest/globals@29.7.0
@jest/schemas@29.6.3
@jest/source-map@29.6.3
@jest/test-result@29.7.0
@jest/transform@29.7.0
@jest/types@29.6.3
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2

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
19 Packages, Including:
@istanbuljs/load-nyc-config@1.1.0
anymatch@3.1.3
electron-to-chromium@1.4.801
fs.realpath@1.0.0
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
lru-cache@5.1.1
minimatch@3.1.2
once@1.4.0
picocolors@1.0.1
semver@6.3.1
semver@7.6.2
signal-exit@3.0.7
test-exclude@6.0.0
wrappy@1.0.2
write-file-atomic@4.0.2
yallist@3.1.1

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
8 Packages, Including:
@sinonjs/commons@3.0.1
@sinonjs/fake-timers@10.3.0
babel-plugin-istanbul@6.1.1
istanbul-lib-coverage@3.2.2
istanbul-lib-instrument@5.2.1
makeerror@1.0.12
sprintf-js@1.0.3
tmpl@1.0.5

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
4 Packages, Including:
@ampproject/remapping@2.3.0
bser@2.1.1
fb-watchman@2.0.2
walker@1.0.8

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001632

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
1 Packages, Including:
esprima@4.0.1
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

22
All Dependencies CSV
β“˜ This is a list of jest-runtime 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@jest/environment29.7.05.2 kBMIT
prod
@jest/fake-timers29.7.06.1 kBMIT
prod
@jest/globals29.7.01.9 kBMIT
prod
1
1
@jest/source-map29.6.32.19 kBMIT
prod
@jest/test-result29.7.04.21 kBMIT
prod
@jest/transform29.7.012.12 kBMIT
prod
1
1
@jest/types29.6.38 kBMIT
prod
@types/node20.14.21.99 MBMIT
prod
chalk4.1.211.31 kBMIT
prod
cjs-module-lexer1.3.1136.14 kBMIT
prod
collect-v8-coverage1.0.22.44 kBMIT
prod
glob7.2.315.08 kBISC
prod
graceful-fs4.2.119.57 kBISC
prod
jest-haste-map29.7.027.91 kBMIT
prod
jest-message-util29.7.06.84 kBMIT
prod
jest-mock29.7.011.69 kBMIT
prod
jest-regex-util29.6.31.65 kBMIT
prod
jest-resolve29.7.012.81 kBMIT
prod peer
jest-snapshot29.7.019.07 kBMIT
prod
1
1
jest-util29.7.010.86 kBMIT
prod
slash3.0.01.8 kBMIT
prod
strip-bom4.0.02.07 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jest-runtime do?

Jest-Runtime is a core package of the Jest testing platform. It is responsible for the essential functionality of evaluating and running your test code within a controlled environment. It works by compiling and executing your test files and their dependencies in isolation for each test suite, thereby ensuring accurate and uncorrupted test results.

How do you use jest-runtime?

To use jest-runtime, you'll first need to install it as a part of Jest npm package using either npm or yarn:

npm install --save jest

or

yarn add jest

Having installed Jest, jest-runtime is available for you to use. However, direct usage of jest-runtime is generally reserved for advanced use-cases.

Here's a simple Node.js script example that demonstrates how to use jest-runtime:

const Runtime = require('jest-runtime');
const path = require('path');

async function run() {
  const config = Runtime.createHasteMap.getDefaultConfig({
    rootDir: process.cwd(),
  });
  const hasteMap = await Runtime.createHasteMap(config);
  const resolver = Runtime.createResolver(
    config,
    hasteMap.moduleMap,
  );
  const runtime = new Runtime(config, resolver);

  runtime.requireModule(runtime.__mockRootPath, './test-to-run.js');
}

run();

In this script, we load a test script located at ./test-to-run.js using jest-runtime.

Where are the jest-runtime docs?

The documentation for jest-runtime can be found as part of Jest's official documentation on their website here. While the package's documentation may not be as rich or detailed as that of the main Jest library, the overall Jest documentation will provide further insights into its usage and capabilities.