Skip to content

Commit 193b30c

Browse files
committed
use toMatchSnapshot instead of toMatchFormattedCss
More info: #12170
1 parent 52edab7 commit 193b30c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should test the 'forcedColorsVariants' plugin 1`] = `
4+
"
5+
@media (forced-colors: active) {
6+
.forced-colors\\:flex {
7+
display: flex;
8+
}
9+
}
10+
"
11+
`;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import { css, quickVariantPluginTest } from '../../util/run'
1+
import { quickVariantPluginTest } from '../../util/run'
22

3-
quickVariantPluginTest('forcedColorsVariants').toMatchFormattedCss(css`
4-
@media (forced-colors: active) {
5-
.forced-colors\:flex {
6-
display: flex;
7-
}
8-
}
9-
`)
3+
quickVariantPluginTest('forcedColorsVariants').toMatchSnapshot()

0 commit comments

Comments
 (0)