
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@equisoft/jest-utils
Advanced tools
This package regroup utils to help write tests with Jest and create a standard config.
yarn add -DE @equisoft/jest-utils
Create your jest.config.js
file and import the createJestConfig
function. The createJestConfig
uses a deep merge that allow you to extend from the base Equisoft's config.
// jest.config.js
const { createJestConfig } = require('@equisoft/jest-utils');
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.json');
const config = {
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || [], { prefix: '<rootDir>/src/test' }),
roots: [
'<rootDir>/src/browser',
'<rootDir>/src/test',
],
setupFilesAfterEnv: [
'jest-extended',
'./src/test/setup-tests.ts',
],
collectCoverageFrom: ['<rootDir>/src/browser/**/*.{js,jsx,ts,tsx}'],
transform: {
'^.+.m?[t]sx?$': ['ts-jest', {
tsconfig: 'src/test/tsconfig.json',
babelConfig: {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react',
],
plugins: [
'@babel/plugin-transform-react-display-name',
['babel-plugin-styled-components', { fileName: false }],
],
},
},
],
},
};
module.exports = createJestConfig(config);
Jest has a built-in support for GitHub Actions annotations (see Jest documentation).
This feature is enabled by default when running on GitHub Actions.
To disable this feature, you can set the JEST_ENABLE_ANNOTATIONS
environment variable to false
when running Jest.
FAQs
Unknown package
The npm package @equisoft/jest-utils receives a total of 373 weekly downloads. As such, @equisoft/jest-utils popularity was classified as not popular.
We found that @equisoft/jest-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.