docs: fix typo related to reporters (#4008)

This commit is contained in:
Dunqing 2023-08-24 20:23:09 +08:00 committed by GitHub
parent 00c432fad6
commit e8f7b08620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ Of course, you can create your reporter from scratch. Just extend the `BaseRepor
And here is an example of a custom reporter:
```ts
// ./custom-reporter.ts
// ./custom-reporter.js
import { BaseReporter } from 'vitest/reporters'
export default class CustomReporter extends BaseReporter {
@ -33,7 +33,7 @@ export default class CustomReporter extends BaseReporter {
Or implement the `Reporter` interface:
```ts
// ./custom-reporter.ts
// ./custom-reporter.js
import { Reporter } from 'vitest/reporters'
export default class CustomReporter implements Reporter {