test(test-data): port lookup-interpolation, mixin-as-value & rootpath-escape-interpolation fixtures to alpha - #4527
Conversation
…escape-interpolation fixtures from master
Bring three fixtures that exist on master into the alpha corpus so the
shared @less/test-data package stays aligned across branches:
- tests-unit/lookup-interpolation: [...] lookups inside @{...} interpolation
- tests-error/eval/mixin-as-value: using a mixin call as a value errors
- tests-config/rootpath-escape-interpolation: rootpath + escaped interpolation
lookup-interpolation and mixin-as-value render/error as expected under the
alpha fixture gate. rootpath-escape-interpolation exercises the rootpath
option, which the alpha build does not support yet (validateAlphaOptions
rejects it), so it is added to the alpha-fixtures skip map alongside the
existing rootpath-rewrite-urls entries.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
What this does
Three fixtures exist under
packages/test-dataonmasterbut were missing fromalpha. Since@less/test-datais a shared corpus consumed across branches (and by downstream compatibility suites), this ports them ontoalphaso the corpus stays aligned:tests-unit/lookup-interpolation[...]lookups inside@{…}interpolation — selectors,url(), at-rule name/prelude, property names, custom-property values, and the quoted/url silent-pass-through regressionstests-error/eval/mixin-as-valuetests-config/rootpath-escape-interpolationrootpathcombined with escaped-string interpolationAlpha fixture gate
lookup-interpolationandmixin-as-valuerender / error as expected under the alpha fixture gate — the fullpnpm --dir packages/less run test:alpharun stays green:rootpath-escape-interpolationexercises therootpathoption, which the alpha build does not support yet (validateAlphaOptionsrejects it). It is added to thealpha-fixtures.mjsskip map next to the existingrootpath-rewrite-urls-*entries, with the same reason, so the fixture ships in the corpus without gating the alpha build. When rootpath support lands, removing that one skip line turns it into an active gate.Notes
extend/extend-clearfix.lessandmedia-nested-type/property-interpolation-lookupfixtures from the same master range are intentionally not included here:extend-clearfix.lessis an@importhelper with no expected CSS, and the other two do not yet pass the alpha engine — they are tracked separately.