我试图使用jest在next.js中运行一个测试,但是我一直收到一个错误:The error below may be caused by using the wrong test environment我还尝试基于jest.config.js测试页面配置next.js。这是行不通的,我已经尝试了解决方案和没有锈蚀编译器。": "^29.0.3"}
Jest.config.js
我有以下的健康检查功能 res.status(200).json({ message: "Hello from Next.js});我有下面的测试 test("that the application is live with a status of 200", () => {
const mockFn