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/core-test-kit
Advanced tools
@stylable/core-test-kit
is a collection of utilities aimed at making testing Stylable core behavior and functionality easier.
An assortment of Chai
matchers used by Stylable.
flat-match
- flattens and matches passed argumentsresults
- test Stylable transpiled style rules outputA collection of tools aimed at testing Stylable diagnostics messages (warnings and errors).
Used for easily setting up Stylable instances (processor/transformer) and its infrastructure.
Exposes expectTransformOutput
utility for creating transformation tests. These are the most common core tests and the recommended way to test the core transform functionality.
Currently only supports testing target selector but when needed the functionality can be expended here to support:
Using the /* @expect selector */
comment to test the root class selector target
expectTransformOutput(
{
entry: `/style.st.css`,
files: {
'/style.st.css': {
namespace: 'ns',
content: `
/* @expect .ns__root */
.root {}
`
},
},
1
);
Exposes two utility functions (matchRuleAndDeclaration
and matchAllRulesAndDeclarations
) used for testing Stylable generated AST representing CSS rules and declarations.
Copyright (c) 2019 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.
FAQs
Stylable core test-kit
The npm package @stylable/core-test-kit receives a total of 211 weekly downloads. As such, @stylable/core-test-kit popularity was classified as not popular.
We found that @stylable/core-test-kit 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.