我正在尝试使用Jest为我的Express服务器编写集成测试。由于Jest并行运行测试(我希望避免使用--runInBand按顺序运行测试),因此我使用库来查找随机可用的端口,以便不同的测试套件不会有端口冲突。Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren
我正在尝试为graphql字段创建角色守卫。如下所示:import { Field, ObjectType } from 'type-graphql';import Role from '../role/role.entity';
@Entity() @Field()
@PrimaryGenerate