Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/jest

Package Overview
Dependencies
Maintainers
5
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/jest

Test your Stylable React components using Jest

  • 0.1.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
increased by78.9%
Maintainers
5
Weekly downloads
 
Created
Source

@stylable/jest

npm version

@stylable/jest is a simple integration that allows testing your Stylable React components using Jest.

Installation

This package is still a work-in-progress within the Stylable mono-repo. Once it matures, further details will be added here.

Usage

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$))']);

License

Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.

FAQs

Package last updated on 28 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc