mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-08-08 16:26:23 +00:00
add logs for debug
This commit is contained in:
@@ -223,6 +223,7 @@ function terminateChild(child: ResultPromise, signal: NodeJS.Signals = 'SIGTERM'
|
||||
}
|
||||
|
||||
export default async function globalSetup() {
|
||||
console.log('Called globalSetup. Spawning test server process...');
|
||||
await killTestServers();
|
||||
|
||||
const child = execaNode(entryFilePath, [], {
|
||||
@@ -234,6 +235,7 @@ export default async function globalSetup() {
|
||||
},
|
||||
});
|
||||
|
||||
console.log('Waiting for test server to be ready...');
|
||||
try {
|
||||
await waitForControllerReady();
|
||||
} catch (error) {
|
||||
@@ -242,6 +244,7 @@ export default async function globalSetup() {
|
||||
}
|
||||
|
||||
return async () => {
|
||||
console.log('Called globalTeardown. Shutting down test server process...');
|
||||
try {
|
||||
await requestChildShutdown();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user