
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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 362 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.