@stylable/jest
Advanced tools
Comparing version 4.3.1 to 4.3.3
@@ -0,2 +1,4 @@ | ||
import * as transformer from './jest'; | ||
export default transformer; | ||
export * from './jest'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,2 +9,14 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -14,3 +26,5 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const transformer = __importStar(require("./jest")); | ||
exports.default = transformer; | ||
__exportStar(require("./jest"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,5 +5,5 @@ import type { StylableConfig } from '@stylable/core'; | ||
export declare const process: (source: string, path: string) => string; | ||
export declare function getCacheKey(fileData: string, filename: string, configString: string, { instrument }: { | ||
export declare function getCacheKey(fileData: string, filename: string, configString: string, options?: { | ||
instrument: boolean; | ||
}): string; | ||
//# sourceMappingURL=jest.d.ts.map |
@@ -26,6 +26,6 @@ "use strict"; | ||
exports.process = processFactory(); | ||
function getCacheKey(fileData, filename, configString, { instrument }) { | ||
function getCacheKey(fileData, filename, configString, options) { | ||
return (fileData + | ||
configString + | ||
(instrument ? 'instrument' : '') + | ||
(options && options.instrument ? 'instrument' : '') + | ||
filename + | ||
@@ -32,0 +32,0 @@ stylableRuntimePath + |
{ | ||
"name": "@stylable/jest", | ||
"version": "4.3.1", | ||
"version": "4.3.3", | ||
"description": "Test your Stylable React components using Jest", | ||
@@ -10,5 +10,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^4.3.1", | ||
"@stylable/module-utils": "^4.3.1", | ||
"@stylable/runtime": "^4.3.1" | ||
"@stylable/core": "^4.3.3", | ||
"@stylable/module-utils": "^4.3.3", | ||
"@stylable/runtime": "^4.3.3" | ||
}, | ||
@@ -15,0 +15,0 @@ "files": [ |
@@ -0,1 +1,3 @@ | ||
import * as transformer from './jest'; | ||
export default transformer; | ||
export * from './jest'; |
@@ -35,3 +35,3 @@ import fs from 'fs'; | ||
configString: string, | ||
{ instrument }: { instrument: boolean } | ||
options?: { instrument: boolean } | ||
) { | ||
@@ -41,3 +41,3 @@ return ( | ||
configString + | ||
(instrument ? 'instrument' : '') + | ||
(options && options.instrument ? 'instrument' : '') + | ||
filename + | ||
@@ -44,0 +44,0 @@ stylableRuntimePath + |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9771
119
Updated@stylable/core@^4.3.3
Updated@stylable/runtime@^4.3.3