Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@stylable/jest
Advanced tools
@stylable/jest
is a simple integration that allows testing your Stylable React components using Jest.
This package is still a work-in-progress within the Stylable mono-repo. Once it matures, further details will be added here.
Use the process
utility imported from @stylable/jest
to configure your Jest setup to support Stylable stylesheets, turning them into resolvable modules.
Note: Jest should also be configured to ignore
.st.css
files in its transformations.
const { process } = require('@stylable/jest');
const config = merge(jestProjectConfig, {
transform: {
'\\.jsx?$': require.resolve('babel-jest'),
'\\.st.css?$': process,
},
});
config.transformIgnorePatterns = (config.transformIgnorePatterns || [])
.concat(['/node_modules/(?!(.*?\\.st\\.css$))']);
Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.
FAQs
Test your Stylable React components using Jest
The npm package @stylable/jest receives a total of 2,182 weekly downloads. As such, @stylable/jest popularity was classified as popular.
We found that @stylable/jest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.