Skip to content

Commit f49429e

Browse files
committed
Add source map test for at-rule variants
1 parent 2aedd64 commit f49429e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/source-maps.test.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ test('components have source maps', async () => {
427427

428428
test('source maps for layer rules are not rewritten to point to @tailwind directives', async () => {
429429
let config = {
430-
content: [{ raw: `font-normal foo hover:foo` }],
430+
content: [{ raw: `font-normal foo hover:foo lg:foo` }],
431431
}
432432

433433
let utilitiesFile = postcss.parse(
@@ -481,6 +481,11 @@ test('source maps for layer rules are not rewritten to point to @tailwind direct
481481
"6:0 -> 6:0",
482482
"7:2-23 -> 7:2-23",
483483
"8:0 -> 8:0",
484+
"10:0 -> 10:0",
485+
"11:2 -> 11:2",
486+
"12:4-25 -> 12:4-25",
487+
"13:2 -> 13:2",
488+
"14:0 -> 14:0",
484489
]
485490
`)
486491
})

0 commit comments

Comments
 (0)