This commit is contained in:
Philippe Torrel
2026-07-03 15:30:26 +02:00
parent f0e8aaa79c
commit 1b7f884cc6
837 changed files with 122510 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
'use strict'
const fs = require('node:fs')
const path = require('node:path')
const { runSass } = require('sass-true')
module.exports = (filename, { describe, it }) => {
const data = fs.readFileSync(filename, 'utf8')
const TRUE_SETUP = '$true-terminal-output: false; @import "true";'
const sassString = TRUE_SETUP + data
runSass(
{ describe, it, sourceType: 'string' },
sassString,
{ loadPaths: [path.dirname(filename)] }
)
}