UNPKG

353 BJavaScriptView Raw
1const sassTrue = require('sass-true');
2const fs = require('fs');
3const path = require('path');
4
5const testFiles = fs
6 .readdirSync(__dirname)
7 .filter((file) => file.endsWith('.spec.scss'))
8 .map((file) => path.resolve(__dirname, file));
9
10testFiles.forEach((file) => {
11 sassTrue.runSass(
12 { file },
13 {
14 describe,
15 it,
16 }
17 );
18});