开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
jestjs

jestjs

go

两个不同的axios模拟实例返回了一个错误,提示axios.default不是一个函数。

英文: 2 different instance of axios mock having returning an error of axios.default is not a function ...
huangapple 2023年6月5日137评论javascript unit-testing
go

如何在Jest中测试React Suspense中的’promise wrapper’,当通过axios获取数据时。

英文: How to test a React Suspense 'promise wrapper' in Jest, when fetching data via axios 问题 ...
huangapple 2023年6月5日133评论reactjs typescript
go

Redux模拟存储在使用Jest/RTL的React测试环境中未更新。

英文: Redux mock store is not being updated on react test environment using Jest/RTL 问题 以下是翻译好的代码部分: I...
huangapple 2023年6月5日132评论reactjs unit-testing
go

Web Workers 在 create-react-app 中:Jest 错误:无法在模块外部使用 ‘import.meta’。

英文: Web Workers in create-react-app: Jest error: Cannot use 'import.meta' outside a module 问...
huangapple 2023年6月2日135评论jestjs reactjs
go

如何断言 jest 模拟的模块方法已被调用?

英文: How can I assert that the jest mocked module method was called? 问题 我如何断言 jest 模拟的模块方法是否被调用了? 例如,...
huangapple 2023年6月1日113评论javascript jestjs
go

如何使用Jest测试NextJS应用程序的路由API路由

英文: How to test NextJS App Router API route with Jest 问题 以下是翻译好的内容: 我有一个非常简单的API路由,我想要测试: 文件 ./src/a...
huangapple 2023年6月1日146评论reactjs typescript
go

如何在单元测试键盘可访问性时切换到非标准元素?

英文: How do I tab to a non-standard element while unit-testing for keyboard accessibility? 问题 ## 背景 我...
huangapple 2023年5月30日134评论reactjs unit-testing
go

等待数据库删除,然后关闭连接会导致MongoExpiredSessionError。

英文: Awaiting database drop, then closing connection gives MongoExpiredSessionError 问题 我正在使用Jest运行测试。...
huangapple 2023年5月30日127评论javascript mongoose
go

如何解决”argument of type ‘boolean’ is not assignable…”错误。

英文: How to resolve "argument of type 'boolean' is not assignable..." 问题 以下是您要翻译的内容...
huangapple 2023年5月29日229评论javascript reactjs
go

如何在我的Jest单元测试中模拟一个TypeScript枚举?

英文: How do I mock a TypeScript enum in my Jest unit tests? 问题 我想在我的单元测试中模拟一个枚举类型。我的枚举类型如下: enum Orig...
huangapple 2023年5月29日122评论jestjs typescript
14

文章导航

1 2 3 4 5 6 7 8 9 … 14
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17063292

热门标签

android python c++ typescript spring c# go pandas arrays html css json javascript reactjs sql java spring-boot flutter node.js r

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码