import { afterAll, beforeAll, describe, expect, test } from '@jest/globals' import clientMain from '../src/clientMain' import processMain from '../src/processMain' import cache from '../src/cache/redis' import db from "../src/db/db" import * as dotenv from 'dotenv' dotenv.config() let listenServer beforeAll(async () => { /*await cache.FLUSHDB() await processMain await cache.quit() await db.destroy() listenServer = await clientMain;*/ }) describe('client', () => { test('fetchServerList', () => { expect(200).toBe(200) }) }) afterAll((done) => { cache.quit().then(() => { db.destroy().then(() => { done() }) }) })