How to test custom web component with jest?

后端 未结 5 718
栀梦
栀梦 2021-01-06 08:54

I would like to test some custom web components and use jest.js as test runner (due to its support for ES6).

Chromium supports commands like

window.c         


        
5条回答
  •  失恋的感觉
    2021-01-06 09:09

    use electron runner can include all node and chrome env, use this to replace jsdom

    https://github.com/facebook-atom/jest-electron-runner

提交回复
热议问题