File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
tests-unit/tests/adapters Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ export function error(...args: any[]) {
52
52
}
53
53
if ( error . logLevel === 0 ) {
54
54
// Display the name and the message instead of full Open Next errors.
55
- return debug (
55
+ // console.log is used so that logging does not depend on openNextDebug.
56
+ return console . log (
56
57
...args . map ( ( arg ) =>
57
58
isOpenNextError ( arg ) ? `${ arg . name } : ${ arg . message } ` : arg ,
58
59
) ,
Original file line number Diff line number Diff line change @@ -13,17 +13,11 @@ describe("logger adapter", () => {
13
13
const error = vi . spyOn ( console , "error" ) . mockImplementation ( ( ) => null ) ;
14
14
15
15
beforeEach ( ( ) => {
16
- // Direct debug to console.log
17
- globalThis . openNextDebug = true ;
18
16
debug . mockClear ( ) ;
19
17
warn . mockClear ( ) ;
20
18
error . mockClear ( ) ;
21
19
} ) ;
22
20
23
- afterAll ( ( ) => {
24
- globalThis . openNextDebug = false ;
25
- } ) ;
26
-
27
21
const ignorableError = new IgnorableError ( "ignorable" ) ;
28
22
const recoverableError = new RecoverableError ( "recoverable" ) ;
29
23
const fatalError = new FatalError ( "fatal" ) ;
You can’t perform that action at this time.
0 commit comments