File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/wrangler/e2e/unenv-preset/worker Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -213,15 +213,15 @@ export async function testTls() {
213213}
214214
215215export async function testDebug ( ) {
216- // @ts -expect-error "@cloudflare/unenv-preset/npm/ debug" is an unenv alias, it does not exist as a module.
217- const debug = await import ( "@cloudflare/unenv-preset/npm/ debug" ) ;
216+ // @ts -expect-error "debug" is an unenv alias, not installed locally
217+ const debug = ( await import ( "debug" ) ) . default ;
218218 const logs : string [ ] = [ ] ;
219219
220220 // Append all logs to the array instead of logging to console
221- debug . default . log = ( ...args : string [ ] ) =>
221+ debug . log = ( ...args : string [ ] ) =>
222222 logs . push ( args . map ( ( arg ) => arg . toString ( ) ) . join ( " " ) ) ;
223223
224- const exampleLog = debug . default ( "example" ) ;
224+ const exampleLog = debug ( "example" ) ;
225225 const testLog = exampleLog . extend ( "test" ) ;
226226
227227 exampleLog ( "This is an example log" ) ;
You can’t perform that action at this time.
0 commit comments