jest-transform-css
Advanced tools
Comparing version 6.0.0 to 6.0.1
const fs = require("fs"); | ||
const crypto = require("crypto"); | ||
const crossSpawn = require("cross-spawn"); | ||
const path = require("path"); | ||
const stripIndent = require("common-tags/lib/stripIndent"); | ||
@@ -62,7 +63,7 @@ const THIS_FILE = fs.readFileSync(__filename); | ||
// https://twitter.com/kentcdodds/status/1043194634338324480 | ||
const postcssRunner = `${__dirname}/postcss-runner.js`; | ||
const postcssRunner = JSON.stringify(path.join(__dirname, "postcss-runner.js")); | ||
const result = crossSpawn.sync("node", [ | ||
"-e", | ||
stripIndent` | ||
require("${postcssRunner}")( | ||
require(${postcssRunner})( | ||
${JSON.stringify({ | ||
@@ -69,0 +70,0 @@ src, |
{ | ||
"name": "jest-transform-css", | ||
"description": "Jest transformer to import CSS into Jest's `jsdom`", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "Dominik Ferber <dominik.ferber+npm@gmail.com> (http://dferber.de/)", |
14703
182