Explicitly don't support legacy cssnext @apply rules

This commit is contained in:
Adam Wathan 2020-08-13 07:51:46 -04:00
parent e313de6354
commit 3d156cc81f

View file

@ -81,7 +81,7 @@ test.skip('applied rules can be made !important', () => {
})
})
test.skip('cssnext custom property sets are preserved', () => {
test('cssnext custom property sets are no longer supported', () => {
const input = `
.a {
color: red;
@ -101,9 +101,8 @@ test.skip('cssnext custom property sets are preserved', () => {
}
`
return run(input).then(result => {
expect(result.css).toEqual(expected)
expect(result.warnings().length).toBe(0)
return run(input).catch(e => {
expect(e).toMatchObject({ name: 'CssSyntaxError' })
})
})