Skip to content

Commit

Permalink
just messing around with configuration a bit, was able to suppress al…
Browse files Browse the repository at this point in the history
…l console logging but want to verify this is desired
  • Loading branch information
happycodemonkey committed Jun 29, 2023
1 parent 1291ab3 commit e19eef7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ module.exports = {
// unmockedModulePathPatterns: undefined,

// Indicates whether each individual test should be reported during the run
// verbose: undefined,
verbose: true,

// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
// watchPathIgnorePatterns: [],
Expand Down
11 changes: 11 additions & 0 deletions client/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
jest.mock('@niivue/niivue', () => {});

global.console = {
...console,
// uncomment to ignore a specific log level
log: jest.fn(),
debug: jest.fn(),
info: jest.fn(),
warn: jest.fn(),
error: jest.fn(),
};

0 comments on commit e19eef7

Please sign in to comment.