From d9ec386fbe75ebf855085ca00189319bd47a0358 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 9 Oct 2023 16:58:07 +0200 Subject: [PATCH] use `toMatchSnapshot` instead of `toMatchFormattedCss` More info: https://github.com/tailwindlabs/tailwindcss/pull/12170 --- .../__snapshots__/transitionBehavior.test.js.snap | 13 +++++++++++++ tests/plugins/transitionBehavior.test.js | 11 ++--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 tests/plugins/__snapshots__/transitionBehavior.test.js.snap diff --git a/tests/plugins/__snapshots__/transitionBehavior.test.js.snap b/tests/plugins/__snapshots__/transitionBehavior.test.js.snap new file mode 100644 index 000000000000..ec72b6e9cc2b --- /dev/null +++ b/tests/plugins/__snapshots__/transitionBehavior.test.js.snap @@ -0,0 +1,13 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should test the 'transitionBehavior' plugin 1`] = ` +" +.transition-allow-discrete { + transition-behavior: allow-discrete; +} + +.transition-behavior-normal { + transition-behavior: normal; +} +" +`; diff --git a/tests/plugins/transitionBehavior.test.js b/tests/plugins/transitionBehavior.test.js index 7f2aa4270d2b..e66aeeafed83 100644 --- a/tests/plugins/transitionBehavior.test.js +++ b/tests/plugins/transitionBehavior.test.js @@ -1,10 +1,3 @@ -import { css, quickPluginTest } from '../util/run' +import { quickPluginTest } from '../util/run' -quickPluginTest('transitionBehavior').toMatchFormattedCss(css` - .transition-allow-discrete { - transition-behavior: allow-discrete; - } - .transition-behavior-normal { - transition-behavior: normal; - } -`) +quickPluginTest('transitionBehavior').toMatchSnapshot()