Skip to content

Commit e07e3ab

Browse files
committed
chore: update examples
1 parent da557ac commit e07e3ab

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BasicReporter } from "../src";
1+
import { BasicReporter } from "../src/reporters";
22
import { reporterDemo } from "./utils";
33

44
reporterDemo(new BasicReporter({}));

examples/fancy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FancyReporter } from "../src";
1+
import { FancyReporter } from "../src/reporters";
22
import { reporterDemo } from "./utils";
33

44
reporterDemo(new FancyReporter({}));

examples/utils/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Consola, FancyReporter } from "../../src";
1+
import { FancyReporter } from "../../src/reporters";
2+
import { createConsola } from "../../src";
23
import { randomSentence } from "./sentence";
34

45
export 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
});

0 commit comments

Comments
 (0)