Files
ToneAPI_backend/tests/client.test.ts.disabled
T
2023-04-08 19:03:27 +02:00

29 lines
672 B
Plaintext

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() })
})
})