Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: load deps reporter * chore: update * fix: lint * feat: more timeout * feat: absolute path will executeId * chore: update * chore: update * test: load report no base on root * chore: update
- Loading branch information
Showing
9 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['tests/reporters.spec.ts'], | ||
reporters: ['pkg-reporter'], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
}, | ||
"devDependencies": { | ||
"execa": "^6.1.0", | ||
"pkg-reporter": "./reportPkg/", | ||
"vitest": "workspace:*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default class PackageReporter { | ||
onInit(ctx) { | ||
this.ctx = ctx | ||
} | ||
|
||
onFinished() { | ||
this.ctx.logger.log('hello from package reporter') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "pkg-reporter", | ||
"main": "./index.js" | ||
} |
13 changes: 13 additions & 0 deletions
13
test/reporters/reportTest2/custom-reporter-path.vitest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { resolve } from 'pathe' | ||
import { defineConfig } from 'vitest/config' | ||
|
||
const customReporter = resolve(__dirname, '../src/custom-reporter.ts') | ||
|
||
export default defineConfig({ | ||
root: __dirname, | ||
test: { | ||
root: __dirname, | ||
include: ['../tests/reporters.spec.ts'], | ||
reporters: [customReporter], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters