aboutsummaryrefslogtreecommitdiff
path: root/test/css-json.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/css-json.test.js')
-rw-r--r--test/css-json.test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/css-json.test.js b/test/css-json.test.js
index e4155ca3..588651d2 100644
--- a/test/css-json.test.js
+++ b/test/css-json.test.js
@@ -17,17 +17,17 @@
*/
import fs from 'fs';
-import {expect, test} from 'vitest';
+import {describe, expect, test} from 'vitest';
import {formatRulesJson, generateRules, getTargets} from '../dev/generate-css-json';
/** */
function main() {
- test('css-json', () => {
- for (const {cssFilePath, overridesCssFilePath, outputPath} of getTargets()) {
+ describe('css-json', () => {
+ test.each(getTargets())('css-json-test-%#', ({cssFilePath, overridesCssFilePath, outputPath}) => {
const actual = fs.readFileSync(outputPath, {encoding: 'utf8'});
const expected = formatRulesJson(generateRules(cssFilePath, overridesCssFilePath));
expect(actual).toStrictEqual(expected);
- }
+ });
});
}