Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 8x 8x 162x 8x 3x 8x | #!/usr/bin/env node
/**
* TEMPORARY Validator Runner (TO BE REMOVED AFTER MIGRATION)
* Run temporary migration validators sequentially
* Usage: yarn validate:temp [--verbose|-v] [--interactive|-i]
*/
import { createRunner, printBasicSummary, v, runMain } from './validator-runner-utils.js';
const VALIDATORS = [
v('Alias Resolution Test', 'temp-test-alias-resolution.js', 'Test alias resolution in CSS output'),
v('Alias Validation', 'temp-compare-aliases.js', 'Validate OKLCH to hex color conversion'),
v(
'Brand Reference Resolution Test',
'temp-test-brand-refs-resolution.js',
'Test brand reference token resolution',
),
v(
'Brand Reference Usage Validation',
'temp-compare-brand-refs.js',
'Compare brand reference usage between packages',
),
v(
'Light-Dark Function Validation',
'temp-compare-light-dark.js',
'Validate light-dark() function usage in Cosmos theme',
),
v('CSS Comparison (Global Scope)', 'temp-compare-global-css.js', 'Compare global CSS custom properties'),
v(
'CSS Comparison (Shared & Component Scopes)',
'temp-compare-css.js',
'Compare shared and component CSS custom properties',
),
v('JSON Comparison (Global Scope)', 'temp-compare-global-json.js', 'Compare global JSON hook files'),
v(
'JSON Comparison (Shared & Component Scopes)',
'temp-compare-json.js',
'Compare shared and component JSON hook files',
['--scope=all'],
),
];
export const getValidators = (verboseFlag = '') =>
VALIDATORS.map((val) => ({ ...val, args: val.args(verboseFlag) }));
export const main = (options = {}) =>
createRunner({
title: 'Running Temporary Validators',
description: 'These are migration validators (to be removed after migration).',
getValidators,
printSummary: printBasicSummary,
...options,
});
runMain(main, import.meta.url);
|