使用Jest抛出而不是构造函数测试ES6类时出错
我发现了类似的问题here,但似乎没有答案。 我正在尝试使用Jest测试ES6类,如下所示: // src/myclass.js export default class MyClass { constructor(options) { // currently this is empty while I debug this problem } }
..
2023-09-12 12:13:17
浏览量: 1000
推荐文章
-
2023-09-12 12:13:17 浏览量: 1000
-
2023-09-12 12:13:17 浏览量: 1000
-
2023-09-12 12:13:17 浏览量: 1000
-
2023-09-12 12:13:17 浏览量: 1000
-
2023-09-12 12:13:17 浏览量: 1000