Skip to content

Commit e2202b7

Browse files
committed
update test to also use Lightning CSS
1 parent cdcbf2b commit e2202b7

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

packages/tailwindcss/src/index.test.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ describe('@apply', () => {
888888
})
889889

890890
it('should be usable with CSS mixins', async () => {
891-
let compiler = await compile(css`
891+
let input = css`
892892
.foo {
893893
/* Utility usage */
894894
@apply underline;
@@ -902,8 +902,9 @@ describe('@apply', () => {
902902
color: red;
903903
}
904904
}
905-
`)
905+
`
906906

907+
let compiler = await compile(input)
907908
expect(compiler.build([])).toMatchInlineSnapshot(`
908909
".foo {
909910
text-decoration-line: underline;
@@ -917,6 +918,26 @@ describe('@apply', () => {
917918
}
918919
"
919920
`)
921+
922+
// TODO: This output is currently broken because Lightning CSS doesn't
923+
// handle this case correctly yet
924+
expect(await compileCss(input)).toMatchInlineSnapshot(`
925+
".foo {
926+
text-decoration-line: underline;
927+
}
928+
929+
@apply --my-mixin-1;
930+
931+
@apply --my-mixin-1();
932+
933+
@apply --my-mixin-1 --my-mixin-2;
934+
935+
@apply --my-mixin-1() --my-mixin-2();
936+
937+
@apply --my-mixin-3 {
938+
color: red;
939+
}"
940+
`)
920941
})
921942

922943
it('should error when trying to use mixins and utilities together', async () => {

0 commit comments

Comments
 (0)