为什么CSS.supports()在使用jest运行时失败

时间:2018-03-15 17:02:23

标签: javascript css jest jsdom

我正在尝试运行一个具有CSS.supports()功能的测试。

describe('something', () => {
    it('fails',() => {
        CSS.supports('display', 'flex');
    } )
})

我收到此错误:ReferenceError: CSS is not defined

不应该JSDOM支持这个功能吗? 谢谢!

0 个答案:

没有答案