diff --git a/package.json b/package.json index faec16a..d9c76c9 100644 --- a/package.json +++ b/package.json @@ -61,5 +61,8 @@ "dependencies": { "mappy-breakpoints": "^0.2.3", "normalize.css": "^8.0.1" + }, + "jest": { + "testEnvironment": "node" } } diff --git a/scss.spec.js b/scss.spec.js index 16860d3..86b1cea 100644 --- a/scss.spec.js +++ b/scss.spec.js @@ -1,7 +1,10 @@ const { runSass } = require('sass-true') const { sync } = require('glob'); +const sass = require('sass'); describe('SCSS', () => { const files = sync('scss/**/*.spec.scss') - files.forEach(file => runSass({ file }, {describe, it}) ) + files.forEach(file => { + runSass({ file }, { sass, describe, it }) + }) })