Skip to content

Commit a7cf102

Browse files
committed
chore(tmp): log some more debug info
1 parent 60ea1ef commit a7cf102

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint:eslint": "eslint .",
2323
"lint:tsc": "tsc --project ./jsconfig.json",
2424
"test": "npm run test:jest && npm run test:modules",
25-
"test:jest": "jest --silent",
25+
"test:jest": "jest",
2626
"test:modules": "npm run test --workspaces --if-present",
2727
"prepare": "husky",
2828
"postinstall": "npm run build:logos"

packages/middleware-log-errors/test/end-to-end/index.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ describe('@dotcom-reliability-kit/middleware-log-errors end-to-end', () => {
3131
});
3232

3333
it('logs error information to stdout', () => {
34+
console.log('FULL STDOUT: >>>', stdout, '<<<');
3435
const jsonLogs = stdout.split('\n').map((line) => {
3536
try {
3637
return JSON.parse(line);
3738
} catch (error) {
39+
console.log('ERROR PARSING JSON', error);
3840
return {};
3941
}
4042
});
43+
console.log('JSON LOGS', jsonLogs);
4144
const handledErrors = jsonLogs.filter(
4245
(log) => log.event === 'HANDLED_ERROR'
4346
);

0 commit comments

Comments
 (0)