16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
import { redisClient } from '../src/redis'
|
|
import { createTestConnection } from './db'
|
|
import { startApolloServer } from './util'
|
|
|
|
export const mochaGlobalSetup = async () => {
|
|
await createTestConnection()
|
|
console.log('db connection created')
|
|
|
|
if (redisClient) {
|
|
console.log('redis connection created')
|
|
}
|
|
|
|
await startApolloServer()
|
|
console.log('apollo server started')
|
|
}
|