Testing Passport in NestJS
问题 I'm trying to do a e2e testing to a route that has an AuthGuard from nestjs passport module and I don't really know how to approach it. When I run the tests it says: [ExceptionHandler] Unknown authentication strategy "bearer" I haven't mock it yet so I suppose it's because of that but I don't know how to do it. This is what I have so far: player.e2e-spec.ts import { Test } from '@nestjs/testing'; import { INestApplication } from '@nestjs/common'; import * as request from 'supertest'; import {