
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
@voitanos/jest-preset-spfx-react15
Advanced tools
Jest preset configuration for SharePoint Framework projects that leverage React v15 (SPFx <=1.6.0).
A Jest preset configuration for SharePoint Framework (SPFx) projects that leverage React v15. React v15 is used by SPFx projects created with the SPFx Yeoman generator v1.6.0 or earlier. It includes the popular Enzyme React rendering library from Airbnb
See the related packages jest-preset-spfx for SPFx projects without React & jest-preset-spfx-react16 if you are leveraging React v16.
Install Jest & this preset using your package manager of choice:
npm install jest@23.6.0 @voitanos/jest-preset-spfx-react15 --save-dev --save-exact
This will install @types/enzyme-adapter-react-15, @types/enzyme-to-json, @types/jest, @types/react-test-renderer, enzyme, enzyme-adapter-react-15, enzyme-to-json, identity-obj-proxy, raf, react-test-renderer & ts-jest
as dependencies in your project. The specific versions needed for React v15 are used
The postinstall script will verify you have a ./config/jest.config.json file and update your package.json scripts with two scripts for running Jest tests with this configuration: test & test:watch.
If the configuration file is not present, it will create it. If it is present, it will verify the minimal properties.
NOTE: A specific version of
ts-jestis used to support the SPFx supported version of TypeScript as more current versions ofts-jestrequire newer versions of TypeScript that is not yet supported by SPFx.
To validate a successful install, do one of the following two things:
Copy the folder examples from the installed package (also found here in the source repo) into the project's src folder.
Execute Jest to run the tests:
npm test
Observe five (5) passing tests: one for React rendering, four for non-React Typescript).
Add a new file SampleTests.spec.ts to the ./src/webparts folder with the following code:
import 'jest';
test('1+1 should equal 2', () => {
const result: number = 1 + 1;
expect(result).toBe(2);
});
Execute Jest to run the tests:
npm test
Observe a single (1) passing test.
This package contains a base Jest configuration that your project will inherit. It does this by using the preset property in the jest.config.json file.
Two scripts are added to the package.json scripts section:
npm test.npm run test:watch.The following preset is used for SPFx projects:
{
"collectCoverage": true,
"coverageDirectory": "<rootDir>/../temp/test",
"coverageReporters": [
"json",
"lcov",
"text-summary"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy",
"^resx-strings/en-us.json": "<rootDir>/node_modules/@microsoft/sp-core-library/lib/resx-strings/en-us.json"
},
"setupFiles": [
"raf/polyfill",
"@voitanos/jest-preset-spfx-react15/jest.enzyme.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"testMatch": [
"**/src/**/*.(spec|test).+(ts|js)?(x)",
"**/__tests__/**/*.(spec|test).+(ts|js)?(x)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
}
}
Explanation of select configuration properties above:
./temp/test folderidentity-obj-proxy packageen-us.json, it is provided a helper path to find the file__tests__ folder or within the src folder with the following names will be found:
*.spec.ts*.spec.tsx*.spec.js*.spec.jsx*.test.ts*.test.tsx*.test.js*.test.jsxFAQs
Jest preset configuration for SharePoint Framework projects that leverage React v15 (SPFx <=1.6.0).
The npm package @voitanos/jest-preset-spfx-react15 receives a total of 7 weekly downloads. As such, @voitanos/jest-preset-spfx-react15 popularity was classified as not popular.
We found that @voitanos/jest-preset-spfx-react15 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.