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

@stylable/jest

Package Overview
Dependencies
Maintainers
6
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/jest - npm Package Compare versions

Comparing version 5.16.1 to 6.0.0-rc.1

2

dist/jest.d.ts

@@ -6,3 +6,3 @@ import type { StylableConfig } from '@stylable/core';

export interface StylableJestConfig {
stylable?: Partial<StylableConfig>;
stylable?: Partial<Omit<StylableConfig, 'fileSystem'>>;
configPath?: string;

@@ -9,0 +9,0 @@ }

@@ -7,6 +7,6 @@ "use strict";

exports.createTransformer = void 0;
const fs_1 = __importDefault(require("fs"));
const node_1 = __importDefault(require("@file-services/node"));
const index_internal_1 = require("@stylable/core/dist/index-internal");
const module_utils_1 = require("@stylable/module-utils");
const node_1 = require("@stylable/node");
const node_2 = require("@stylable/node");
const stylableRuntimePath = require.resolve('@stylable/runtime');

@@ -33,3 +33,3 @@ const stylableCorePath = require.resolve('@stylable/core');

const { defaultConfig } = require(options.configPath);
const defaultConfigObj = defaultConfig(fs_1.default);
const defaultConfigObj = defaultConfig(node_1.default);
(0, index_internal_1.validateDefaultConfig)(defaultConfigObj);

@@ -43,6 +43,6 @@ config = { ...defaultConfigObj, ...options.stylable };

const moduleFactory = (0, module_utils_1.stylableModuleFactory)({
fileSystem: fs_1.default,
fileSystem: node_1.default,
requireModule: require,
projectRoot: '',
resolveNamespace: node_1.resolveNamespace,
resolveNamespace: node_2.resolveNamespace,
...config,

@@ -49,0 +49,0 @@ },

{
"name": "@stylable/jest",
"version": "5.16.1",
"version": "6.0.0-rc.1",
"description": "Test your Stylable React components using Jest",

@@ -10,6 +10,7 @@ "main": "dist/index.js",

"dependencies": {
"@stylable/core": "^5.16.1",
"@stylable/module-utils": "^5.16.1",
"@stylable/node": "^5.16.1",
"@stylable/runtime": "^5.16.1"
"@file-services/node": "^8.3.2",
"@stylable/core": "^5.16.0",
"@stylable/module-utils": "^5.16.0",
"@stylable/node": "^5.16.0",
"@stylable/runtime": "^5.16.0"
},

@@ -23,3 +24,3 @@ "files": [

"engines": {
"node": ">=14.14.0"
"node": ">=18.12.0"
},

@@ -26,0 +27,0 @@ "publishConfig": {

@@ -1,2 +0,2 @@

import fs from 'fs';
import fs from '@file-services/node';
import type { StylableConfig } from '@stylable/core';

@@ -33,3 +33,3 @@ import { validateDefaultConfig } from '@stylable/core/dist/index-internal';

export interface StylableJestConfig {
stylable?: Partial<StylableConfig>;
stylable?: Partial<Omit<StylableConfig, 'fileSystem'>>;
configPath?: string;

@@ -39,3 +39,3 @@ }

export const createTransformer = (options?: StylableJestConfig) => {
let config: Partial<StylableConfig> = {
let config = {
...options?.stylable,

@@ -42,0 +42,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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