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