我正在使用Vue3、TypeScript、Jest和D3 v7。当我尝试import * as d3 from "d3";时,我在测试中得到了这个错误: function(module,exports,require,__dirname,__filename,global,jest)
{export * from "d3我尝试更新jest的transformIgnorePatterns属性以读取,但这也不起
我正在尝试使用@web/test-runner作为我在snowpack上的测试运行程序。到目前为止,我成功地使用@web/test-runner-playwright启动了一个无头浏览器来运行我的测试。现在,我需要一个测试框架(即jest)来利用它的test和expect结构。如何在上面的设置中使用jest?我试图直接从@jest/globals导入这些信息,但是我说Do not import '@jest