mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
16 lines
430 B
JavaScript
16 lines
430 B
JavaScript
|
/* eslint-env node */
|
||
|
|
||
|
const { runSass } = require('sass-true')
|
||
|
const fs = require('node:fs')
|
||
|
const path = require('node:path')
|
||
|
|
||
|
module.exports = function (filename, { describe, it }) {
|
||
|
const data = fs.readFileSync(filename, { encoding: 'utf8' })
|
||
|
const TRUE_SETUP = '$true-terminal-output: false; @import \'true\';'
|
||
|
|
||
|
runSass({
|
||
|
data: TRUE_SETUP + data,
|
||
|
includePaths: [path.dirname(filename)]
|
||
|
}, { describe, it })
|
||
|
}
|