Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 829591a

Browse files
committed
test: Remove DEBUG_CONSOLE env var handling, no longer works in latest Jest.
1 parent f20a93c commit 829591a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

jest.setup.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
import GitRevisionPlugin from 'git-revision-webpack-plugin'
2-
import Debug from 'debug'
32

43
const pkg = require('./package.json')
54

65
export default async () => {
7-
if (process.env.DEBUG_CONSOLE) {
8-
// Use debug as console log
9-
// This prevents jest messing with console output
10-
// Ensuring debug messages are printed alongside console messages, in the correct order
11-
console.log = Debug('Streamr::CONSOLE') // eslint-disable-line no-console
12-
}
13-
146
if (!process.env.GIT_VERSION) {
157
const gitRevisionPlugin = new GitRevisionPlugin()
168
const [GIT_VERSION, GIT_COMMITHASH, GIT_BRANCH] = await Promise.all([

0 commit comments

Comments
 (0)