Skip to content
Snippets Groups Projects
Verified Commit 1eb921e2 authored by Konstantin Tsabolov's avatar Konstantin Tsabolov
Browse files

chore(e2e): remove E2E tests

parent bec1beb3
No related branches found
No related tags found
No related merge requests found
import type { INestApplication } from '@nestjs/common';
import type { TestingModule } from '@nestjs/testing';
import { afterEach, beforeEach, describe, it } from '@jest/globals';
import { Test } from '@nestjs/testing';
import request from 'supertest';
import AppModule from '../src/app.module.js';
describe('AppController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
await app.init();
});
afterEach(async () => {
await app.close();
});
it('/v1/health (GET)', () =>
request(app.getHttpServer()).get('/health').expect(200));
});
/** @type {import('jest').Config} */
import config from '../jest.config.js';
export default {
...config,
rootDir: '.',
testRegex: '.*\\.e2e-spec\\.ts$',
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment