File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { BasicReporter } from "../src" ;
1+ import { BasicReporter } from "../src/reporters " ;
22import { reporterDemo } from "./utils" ;
33
44reporterDemo ( new BasicReporter ( { } ) ) ;
Original file line number Diff line number Diff line change 1- import { FancyReporter } from "../src" ;
1+ import { FancyReporter } from "../src/reporters " ;
22import { reporterDemo } from "./utils" ;
33
44reporterDemo ( new FancyReporter ( { } ) ) ;
Original file line number Diff line number Diff line change 1- import { Consola , FancyReporter } from "../../src" ;
1+ import { FancyReporter } from "../../src/reporters" ;
2+ import { createConsola } from "../../src" ;
23import { randomSentence } from "./sentence" ;
34
45export function reporterDemo ( reporter ) {
5- const consola = new Consola ( {
6+ const consola = createConsola ( {
67 level : 5 ,
78 reporters : [ reporter ] ,
89 } ) ;
@@ -25,6 +26,6 @@ export function reporterDemo(reporter) {
2526 }
2627}
2728
28- export const consola = new Consola ( {
29+ export const consola = createConsola ( {
2930 reporters : [ new FancyReporter ( ) ] ,
3031} ) ;
You can’t perform that action at this time.
0 commit comments