- 博客(42)
- 收藏
- 关注
原创 ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. Fro
在 Jest 中,每个测试文件或测试套件(suite)都会在其自己的环境中运行,并且这个环境会在每个测试运行之前设置,并在每个测试运行之后清理。
2024-03-06 14:23:40 422
原创 Nest 测试 日期报错 单双引号的问题 expect(received).toEqual(expected)
expect(received).toEqual(expected)
2024-02-05 16:03:20 344
原创 Nest can‘t resolve dependencies of the UserService (HttpService, ?). Please make ...
imports的TypeOrmModule.forFeature([User])通常是因为你的提供者。
2024-02-05 15:56:46 594
原创 Nest 怎么自动创建表到数据库
entities: [__dirname + '/**/*.entity{.ts,.js}'], // 扫描实体文件
2024-01-09 09:58:44 1934
原创 connect ECONNREFUSED ::1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
自己的数据库没有连接。
2023-12-29 14:15:41 451
原创 JWT(JSON Web Token)和 HTTP(Hypertext Transfer Protocol)区别是什么
JWT 和 HTTP 是两种不同的技术
2023-12-25 12:51:14 59 1
原创 EntityMetadataNotFound: No metadata for “User“ was found
用自己的路径 entity 右键 复制路径。
2023-12-20 12:35:27 239 1
原创 SyntaxError: Cannot use import statement outside a module
迁移文件中的 NestJS TypeORM 语法错误。
2023-12-15 10:04:51 156
原创 Error: connect ECONNREFUSED ::1:5432 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:14
在tcpconnectwrap.afterconnect[作为OnComplete](节点:net:1494:16)在你的Windows机器上,你的PostgreSql有问题,请尝试使用以下命令重启你的PostgreSql服务器。错误:Connect EconnRefused::1:5432。Docker开启没有。
2023-12-14 09:09:00 1079 1
原创 No tests found, exiting with code 1 Run with `--passWithNoTests` to exit with code未找到测试,以代码 1 退出”错误
清楚自己的test内容 一定要检查。
2023-12-11 12:41:47 250 1
原创 判断不为空 不为0
if (CollectionUtils.isEmpty(initList) || CollectionUtils.isEmpty(searchList)) { model.addAttribute("errMsg", MessageUtils.message("MES-E0001"));}
2023-09-21 18:53:11 21 1
原创 org.apache.ibatis.ognl.ParseException: Encountered “ “!“ “! ““ at line 1, column 12.
如题如题
2023-06-28 09:22:12 382 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人