我想用Next.js使用getServerSideProps方法(如 )进行服务器端呈现。Error serializing `.assertions[0]` returned from `getServerSideProps` in "/assertion".我认为原因是,因为来自mysql的mysql方法返回特殊对象(RowDataPacket)。我想传递给getServerS
我试图使用jest在next.js中运行一个测试,但是我一直收到一个错误:The error below may be caused by using the wrong test environment我已经尝试遵循链接并添加docblock: * @jest-environment jsdom我的代码没有成功。我还尝试基于jest.config.js测试页面配置next.js。这是行不通的,