
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@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 344 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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.