Skip to content

Commit 755589d

Browse files
committed
more logging
1 parent 824cb1c commit 755589d

File tree

1 file changed

+14
-1
lines changed
  • dev-packages/node-integration-tests/utils

1 file changed

+14
-1
lines changed

dev-packages/node-integration-tests/utils/runner.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ export function createRunner(...paths: string[]) {
7373

7474
const child = spawn('node', [...flags, testPath]);
7575

76-
child.on('close', () => {
76+
child.on('close', code => {
77+
// eslint-disable-next-line no-console
78+
console.log('child closed', code);
7779
hasExited = true;
7880
});
7981

8082
// Pass error to done to end the test quickly
8183
child.on('error', e => {
84+
// eslint-disable-next-line no-console
85+
console.log('child error', e);
8286
done?.(e);
8387
});
8488

@@ -120,16 +124,25 @@ export function createRunner(...paths: string[]) {
120124
return;
121125
}
122126

127+
// eslint-disable-next-line no-console
128+
console.log('Received json');
129+
123130
let envelope: Envelope | undefined;
124131
try {
125132
envelope = JSON.parse(cleanedLine) as Envelope;
126133
} catch (_) {
127134
return;
128135
}
129136

137+
// eslint-disable-next-line no-console
138+
console.log('we have a valid envelope');
139+
130140
for (const item of envelope[1]) {
131141
const envelopeItemType = item[0].type;
132142

143+
// eslint-disable-next-line no-console
144+
console.log('envelopeItemType', envelopeItemType);
145+
133146
if (ignored.includes(envelopeItemType)) {
134147
continue;
135148
}

0 commit comments

Comments
 (0)