tailwindcss/tests
Robin Malfait 31a80b1794
Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170)
* sync package-lock.json

* reduce generated examples

By default we use the default config when creating the quick tests for a
given plugin. However, this can result in _a lot_ of changes. For
example, when you update the opacity values, then these values will be
generated for each color, and for each plugin that uses that color.

You can see that behaviour in Adam's PR (https://github.com/tailwindlabs/tailwindcss/pull/11832).
He added 6 values to the opacity configuration. This resulted in a diff
that looked like this:
```
+219,436 −9
```

This reduces the amount of examples for plugins that generate _a lot_ of
output otherwise.

* use `toMatchSnapshot`

This way all the `quickPluginTest` and `quickVariantPluginTest`
implementations are the same. This also allows us to update tests after
config changes in an easier way because they use snapshot tests right
now.

* use real colors for reduced red

This will make it a tiny bit easier to debug what's going on if we need
it in the future since it's using the same values as the real colors.
2023-10-09 16:49:20 +02:00
..
fixtures Support loading plugins by package / file name (#12087) 2023-09-26 13:21:42 -04:00
plugins Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
postcss-plugins/nesting Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
util Ensure all built-in plugins have tests (#11618) 2023-07-24 11:41:52 +02:00
any-type.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
apply-important-selector.test.js Fix typos (#11805) 2023-08-12 08:17:41 -04:00
apply.test.js update tests to reflect Lightning CSS update 2023-10-02 15:12:09 +00:00
arbitrary-properties.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
arbitrary-values.test.css move failing test to dedicated failing test 2023-10-02 15:12:09 +00:00
arbitrary-values.test.html move failing test to dedicated failing test 2023-10-02 15:12:09 +00:00
arbitrary-values.test.js Enable error recovery in Lightning CSS 2023-10-03 13:04:17 -04:00
arbitrary-variants.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
basic-usage.test.js Eliminate irrelevant rules when applying variants (#12113) 2023-09-29 16:31:43 -04:00
blocklist.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
collapse-adjacent-rules.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
collapse-duplicate-declarations.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
color-opacity-modifiers.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
color.test.js Fix typos (#11805) 2023-08-12 08:17:41 -04:00
combined-selectors.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
configurePlugins.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
context-reuse.test.html inline tests (#10362) 2023-01-19 11:42:52 +01:00
context-reuse.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
custom-extractors.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
custom-plugins.test.js Support loading plugins by package / file name (#12087) 2023-09-26 13:21:42 -04:00
custom-separator.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
custom-transformers.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
customConfig.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
dark-mode.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
default-extractor.test.js Ensure multiple theme(spacing[5]) calls with bracket notation in arbitrary properties work (#11039) 2023-04-19 23:06:33 +02:00
defaultConfig.test.js Enable ESM and TS based config files (#10785) 2023-03-15 17:04:18 -04:00
defaultTheme.test.js Enable ESM and TS based config files (#10785) 2023-03-15 17:04:18 -04:00
detect-nesting.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
escapeClassName.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
evaluateTailwindFunctions.test.js Fix incorrectly generated CSS when using square brackets inside arbitrary properties (#11709) 2023-07-28 12:37:43 +02:00
experimental.test.js Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
extractor-edge-cases.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
flattenColorPalette.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
format-variant-selector.test.js Don't prefix arbitrary classes in peer/group variants (#11454) 2023-06-28 12:37:52 -04:00
generate-rules.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
getClassList.test.js Extend opacity scale to include all steps of 5 (#11832) 2023-08-16 11:44:14 -04:00
getSortOrder.test.js Fix typos (#11805) 2023-08-12 08:17:41 -04:00
getVariants.test.js Don't prefix arbitrary classes in peer/group variants (#11454) 2023-06-28 12:37:52 -04:00
import-processing-a.css [Oxide] Add built-in @import processing support (#11239) 2023-05-15 19:29:57 +02:00
import-processing-b.css [Oxide] Add built-in @import processing support (#11239) 2023-05-15 19:29:57 +02:00
import-processing-c.css [Oxide] Add built-in @import processing support (#11239) 2023-05-15 19:29:57 +02:00
import-processing-c.js [Oxide] Add built-in @import processing support (#11239) 2023-05-15 19:29:57 +02:00
import-processing.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
import-syntax.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
important-boolean.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
important-modifier-prefix.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
important-modifier.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
important-selector.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
kitchen-sink.test.js feat(preflight): simplify sans-serif font stack (#11748) 2023-08-08 12:26:30 +02:00
layer-at-rules.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
layer-without-tailwind.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
match-components.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
match-utilities.test.js Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
match-variants.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
min-max-screen-variants.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
minimum-impact-selector.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
modify-selectors.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
mutable.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04: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 Merge engines (#11275) 2023-05-24 22:10:00 -04:00
negateValue.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
negative-prefix.test.js Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
normalize-config.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
normalize-data-types.test.js Skip calc() normalisation in nested theme() calls (#11705) 2023-07-27 17:50:58 +02:00
normalize-screens.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
opacity.test.js Handle variable colors that have variable fallback values (#12049) 2023-09-20 16:34:39 -04:00
oxide-svelte.test.css Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
oxide.test.svelte Oxide (#10252) 2023-01-13 12:22:00 +01:00
parallel-variants.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
parse-candidate-strings.test.js Improve RegEx parser, reduce possibilities as the key for arbitrary properties (#12121) 2023-10-02 16:19:23 +02:00
parseAnimationValue.test.js Fix typos (#11805) 2023-08-12 08:17:41 -04:00
parseObjectStyles.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
prefers-contrast.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
prefix.test.js Don't prefix arbitrary classes in peer/group variants (#11454) 2023-06-28 12:37:52 -04:00
prefixSelector.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
raw-content.test.css feat(preflight): simplify sans-serif font stack (#11748) 2023-08-08 12:26:30 +02:00
raw-content.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
relative-purge-paths.test.html inline tests (#10362) 2023-01-19 11:42:52 +01:00
relative-purge-paths.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
resolve-defaults-at-rules.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
resolveConfig.test.js Support loading plugins by package / file name (#12087) 2023-09-26 13:21:42 -04:00
responsive-and-variants-atrules.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
safelist.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
screenAtRule.test.js Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
shared-state.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
source-maps.test.js update tests to reflect changes in Lightning CSS 2023-08-28 09:53:46 +00:00
space-utilities.test.js Bump lightningcss dependency (#11388) 2023-06-07 15:56:32 +02:00
syntax-lit-html.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
syntax-svelte.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
syntax-svelte.test.svelte Rename svelte tests 2021-09-21 12:37:49 -04:00
tailwind-screens.test.js Explicitly configure Lightning CSS features, and prefer user browserslist over default browserslist (#11402) 2023-06-09 20:37:36 +02:00
to-path.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
variants.test.css update tests to reflect Lightning CSS update 2023-10-02 15:12:09 +00:00
variants.test.html Merge engines (#11275) 2023-05-24 22:10:00 -04:00
variants.test.js Allow variant to be an at-rule without a prelude (#11589) 2023-07-11 16:04:38 -04:00
warnings.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00
withAlphaVariable.test.js Merge engines (#11275) 2023-05-24 22:10:00 -04:00