Skip to content

Commit

Permalink
chore: again
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Sep 6, 2023
1 parent 62704eb commit 6b2e0af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/rspack/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ process.on("unhandledRejection", (err, origin) => {
console.error(err.message, err.stack, process.exitCode);
});

let old = process.exit;
process.exit = function (...args) {
const err = new Error();
console.error(err.message, err.stack, process.exitCode);
return old.apply(this, args);
};

["log", "warn", "error"].forEach(methodName => {
const originalMethod = console[methodName];
console[methodName] = (...args) => {
Expand Down

0 comments on commit 6b2e0af

Please sign in to comment.