tailwindcss/tests
Robin Malfait 8e60a3c7e8
Use Lightning CSS in the PostCSS Plugin (#10399)
* bump lightningcss

* use `lightningcss` in the main PostCss Plugin

* use lightningcss in our custom matchers

Now that we are using `lightningcss` and nesting in the new `oxide`
engine, the generated output _will_ be different in the majority of test
cases.

Using a combination of `prettier` and `lightningcss` will make the
output consistent.

The moment we are fully using the `oxide` engine, we can drop
`lightningcss` or `prettier` again to improve the performance of the
tests.

* update tests to apply `lightningcss` related changes

* update changelog

* add `lightningcss` and `browserslist` as dev dependencies to stable package.json

* only use `lightningcss` in tests (without prettier)

We will only fallback to prettier if lightningcss fails somehow.

* apply side effect chagnes due to only using lightningcss for tests

* make CI happy (integration tests)

Apply changes to integration tests now that we are using lightningcss

* transform `lightningcss` for Node 12 when running tests

* run prettier on failing tests for `toMatchFormattedCss`

This will result in better diffs because diffs are typically per block
and/or per line. But lightningcss will simplify certain selectors and
the diff won't be as clear.

We will only apply the prettier formatting for failing tests in the diff
view so that diffs are cleaner and we don't pay for the additional
prettier calls when tests pass.
2023-01-23 20:44:31 +01:00
..
fixtures remove unused fixture files 2021-12-15 18:13:09 +01:00
plugins Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
postcss-plugins/nesting Prevent nesting plugin from breaking other plugins (#7563) 2022-02-21 10:12:39 -05:00
util Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
animations.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
any-type.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
apply.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
arbitrary-properties.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
arbitrary-values.oxide.test.css Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
arbitrary-values.test.css Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
arbitrary-values.test.html Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
arbitrary-values.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
arbitrary-variants.test.js Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
basic-usage.oxide.test.css Include outline-color in default color properties to transition (#10385) 2023-01-21 14:52:55 -05:00
basic-usage.test.css Include outline-color in default color properties to transition (#10385) 2023-01-21 14:52:55 -05:00
basic-usage.test.js Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
blocklist.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
collapse-adjacent-rules.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
collapse-duplicate-declarations.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
color-opacity-modifiers.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
color.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
combined-selectors.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
configurePlugins.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
containerPlugin.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
context-reuse.test.html inline tests (#10362) 2023-01-19 11:42:52 +01:00
context-reuse.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
custom-extractors.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
custom-plugins.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
custom-separator.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
custom-transformers.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
customConfig.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
dark-mode.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
default-extractor.test.js Match arbitrary properties even when followed by square bracketed text (#10212) 2023-01-02 09:43:07 -05:00
defaultConfig.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
defaultTheme.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
detect-nesting.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
escapeClassName.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
evaluateTailwindFunctions.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
experimental.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
extractor-edge-cases.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
flattenColorPalette.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
format-variant-selector.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
generate-rules.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
getClassList.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
getSortOrder.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
getVariants.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
import-syntax.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
important-boolean.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
important-modifier-prefix.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
important-modifier.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
important-selector.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
kitchen-sink.test.js Include outline-color in default color properties to transition (#10385) 2023-01-21 14:52:55 -05:00
layer-at-rules.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
layer-without-tailwind.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
match-components.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
match-utilities.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
match-variants.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
min-max-screen-variants.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
minimum-impact-selector.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
modify-selectors.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
mutable.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
negated-content-ignore.test.html Fix using negated content globs (#5625) 2021-09-29 11:15:31 +01:00
negated-content-include.test.html Fix using negated content globs (#5625) 2021-09-29 11:15:31 +01:00
negated-content.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
negateValue.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
negative-prefix.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
normalize-config.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
normalize-data-types.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
normalize-screens.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
opacity.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
oxide-svelte.test.css Oxide (#10252) 2023-01-13 12:22:00 +01:00
oxide.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
oxide.test.svelte Oxide (#10252) 2023-01-13 12:22:00 +01:00
parallel-variants.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
parseAnimationValue.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
parseObjectStyles.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
prefers-contrast.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
prefix.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
prefixSelector.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
preflight.test.js Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
raw-content.oxide.test.css Include outline-color in default color properties to transition (#10385) 2023-01-21 14:52:55 -05:00
raw-content.test.css Include outline-color in default color properties to transition (#10385) 2023-01-21 14:52:55 -05:00
raw-content.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
relative-purge-paths.test.html inline tests (#10362) 2023-01-19 11:42:52 +01:00
relative-purge-paths.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
resolve-defaults-at-rules.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
resolveConfig.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
responsive-and-variants-atrules.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
safelist.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
screenAtRule.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
shared-state.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
source-maps.test.js Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
syntax-lit-html.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
syntax-svelte.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
syntax-svelte.test.svelte Rename svelte tests 2021-09-21 12:37:49 -04:00
tailwind-screens.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
to-path.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
variant-grouping.test.skip.js npm run style -- --fix 2022-11-30 11:38:37 +00:00
variants.oxide.test.css Add logical properties support for inline direction (#10166) 2023-01-16 18:57:42 +01:00
variants.test.css Remove text opacity CSS variables from ::marker (#8622) 2022-06-14 10:09:09 -04:00
variants.test.html inline tests (#10362) 2023-01-19 11:42:52 +01:00
variants.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
warnings.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
withAlphaVariable.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00