Files
test-repo/tests/format/less/less-test-suite/format.test.js
T
Konv Suuandautofix-ci[bot] 61083dd893 Remove spaces between + and : in less merge feature (#19517)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-06 22:24:32 +08:00

36 lines
1.0 KiB
JavaScript

import lessTestSuite from "less-test-suite";
/* spell-checker: disable */
const SKIP = new Set(["tests-unit/import/import/invalid-css.less"]);
const BUGS = new Set([
// Can't parse
"tests-unit/variables/variable-advanced.less",
"tests-unit/property-accessors/property-accessors.less",
"tests-unit/plugin/plugin.less",
"tests-unit/permissive-parse/permissive-parse.less",
"tests-unit/parser-property-interp/parser-property-interp.less",
"tests-unit/mixins-interpolated/mixins-interpolated.less",
"tests-unit/import/import/invalid-css.less",
"tests-unit/functions/functions.less",
"tests-unit/extract-and-length/extract-and-length.less",
"tests-unit/css-escapes/css-escapes.less",
"tests-unit/comments/comments.less",
]);
/* spell-checker: enable */
const testCases = lessTestSuite.filter(
({ error, name }) => !error && !SKIP.has(name) && !BUGS.has(name),
);
runFormatTest(
{
importMeta: import.meta,
snippets: testCases.map(({ name, input }) => ({
name,
filename: name,
code: input,
})),
},
["less"],
);