@jest/core
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@jest/console | 29.7.0 | 4.2 kB | MIT | prod | |
@jest/reporters | 29.7.0 | 26.91 kB | MIT | prod | 1 1 |
@jest/test-result | 29.7.0 | 4.21 kB | MIT | prod | |
@jest/transform | 29.7.0 | 12.12 kB | MIT | prod | 1 1 |
@jest/types | 29.6.3 | 8 kB | MIT | prod | |
@types/node | 20.12.7 | 1.94 MB | MIT | prod peer | |
ansi-escapes | 4.3.2 | 5.13 kB | MIT | prod | |
chalk | 4.1.2 | 11.31 kB | MIT | prod | |
ci-info | 3.9.0 | 7.21 kB | MIT | prod | |
exit | 0.1.2 | 14.94 kB | MIT | prod | |
graceful-fs | 4.2.11 | 9.57 kB | ISC | prod | |
jest-changed-files | 29.7.0 | 4.25 kB | MIT | prod | |
jest-config | 29.7.0 | 25.91 kB | MIT | prod | 1 1 |
jest-haste-map | 29.7.0 | 27.91 kB | MIT | prod | |
jest-message-util | 29.7.0 | 6.84 kB | MIT | prod | |
jest-regex-util | 29.6.3 | 1.65 kB | MIT | prod | |
jest-resolve-dependencies | 29.7.0 | 3.03 kB | MIT | prod | 1 1 |
jest-resolve | 29.7.0 | 12.81 kB | MIT | prod peer | |
jest-runner | 29.7.0 | 7.99 kB | MIT | prod | 1 1 |
jest-runtime | 29.7.0 | 18.76 kB | MIT | prod | 1 1 |
jest-snapshot | 29.7.0 | 19.07 kB | MIT | prod | 1 1 |
jest-util | 29.7.0 | 10.86 kB | MIT | prod | |
jest-validate | 29.7.0 | 7.56 kB | MIT | prod | |
jest-watcher | 29.7.0 | 5.95 kB | MIT | prod | |
micromatch | 4.0.5 | 14.09 kB | MIT | prod | |
pretty-format | 29.7.0 | 14.34 kB | MIT | prod | |
slash | 3.0.0 | 1.8 kB | MIT | prod | |
strip-ansi | 6.0.1 | 1.99 kB | MIT | prod |
@jest/core is a part of Jest - the robust JavaScript testing framework that offers a delightful JavaScript testing experience. It is a package Jest is currently developing to provide a programmatic API. Please be aware, as it is under development, its direct usage is not currently supported. When fully implemented, @jest/core will establish a foundation for effective and comprehensive testing experience in JavaScript.
To use @jest/core
, you'll need to install Jest and import the package into your current project. Bear in mind that presently its direct usage is unsupported as it's under development. However, once it is fully rolled out, using it might be similar to this:
import { runCLI } from '@jest/core';
const config = {
passWithNoTests: true,
roots: '<directory to your tests>'
};
runCLI(config, [process.cwd()])
.then(result => {
if (result.results.success) console.log('Tests passed!');
else console.log('Tests failed!');
})
.catch(err => {
console.error(err);
});
In the above example, @jest/core
is used to programmatically run Jest, runCLI function is imported from the package and is run with specific configuration.
Currently, the documentation for @jest/core
is not separately provided. The package is part of Jest, hence, the primary source for documentation is the Jest's official documentation. Moreover, more details will be provided in the readme file on the package's GitHub repository at git+https://github.com/jestjs/jest.git, once it's fully developed and its usage is supported.