テストがうごかないのを修正 (#7566)
* startServer * typeorm 0.2.32 * Fix: chartのテストがテストの並び順によっては正しく初期化されない * initTestDb
This commit is contained in:
@ -12,12 +12,14 @@ process.env.NODE_ENV = 'test';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as childProcess from 'child_process';
|
||||
import { async, signup, request, post, launchServer, shutdownServer } from './utils';
|
||||
import { async, signup, request, post, startServer, shutdownServer } from './utils';
|
||||
|
||||
describe('API visibility', () => {
|
||||
let p: childProcess.ChildProcess;
|
||||
|
||||
before(launchServer(g => p = g));
|
||||
before(async () => {
|
||||
p = await startServer();
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await shutdownServer(p);
|
||||
|
Reference in New Issue
Block a user