Skip to content

Commit 3989c0c

Browse files
committed
Add diagnostic logging
Tests are hanging, but which?
1 parent 1f7112b commit 3989c0c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: packages/realm-server/tests/realm-endpoints-test.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { module, test } from 'qunit';
1+
import { module, moduleStart, test, testStart } from 'qunit';
22
import supertest, { Test, SuperTest } from 'supertest';
33
import { join, resolve, basename } from 'path';
44
import { Server } from 'http';
@@ -96,6 +96,14 @@ let createJWT = (
9696

9797
module(basename(__filename), function () {
9898
module('Realm-specific Endpoints', function (hooks) {
99+
testStart(async function ({ name }) {
100+
console.log('testStart: ' + name);
101+
});
102+
103+
moduleStart(async function ({ name }) {
104+
console.log('moduleStart: ' + name);
105+
});
106+
99107
async function expectEvent<T>({
100108
assert,
101109
expected,
@@ -274,7 +282,9 @@ module(basename(__filename), function () {
274282
});
275283

276284
hooks.afterEach(async function () {
285+
console.log('closing server');
277286
await closeServer(testRealmHttpServer);
287+
console.log('closed server');
278288
resetCatalogRealms();
279289
});
280290

0 commit comments

Comments
 (0)