-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reporters):
BaseReporter
, FancyReporter
Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
b477834
commit 194e988
Showing
46 changed files
with
2,005 additions
and
201 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
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 @@ | ||
/** | ||
* @file Fixtures - date | ||
* @module fixtures/date | ||
*/ | ||
|
||
/** | ||
* Fixture date. | ||
* | ||
* @const {Date} date | ||
*/ | ||
const date: Date = new Date(2025, 1, 2) | ||
|
||
export default date |
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,37 @@ | ||
/** | ||
* @file Fixtures - error | ||
* @module fixtures/error | ||
*/ | ||
|
||
import pathe from '@flex-development/pathe' | ||
import { dedent } from 'ts-dedent' | ||
|
||
/** | ||
* URL of current working directory. | ||
* | ||
* @const {URL} cwd | ||
*/ | ||
const cwd: URL = pathe.pathToFileURL(pathe.cwd()) | ||
|
||
/** | ||
* Fixture error. | ||
* | ||
* @const {Error} error | ||
*/ | ||
const error: Error = new Error('This is an example error. Everything is fine!') | ||
|
||
error.stack = dedent` | ||
${error.name}: ${error.message} | ||
at ${cwd.pathname}/__fixtures__/error.mts:21:22 | ||
at VitestExecutor.runModule (${cwd.href}/node_modules/vite-node/dist/client.mjs:399:5) | ||
at VitestExecutor.directRequest (${cwd.href}/node_modules/vite-node/dist/client.mjs:381:5) | ||
at VitestExecutor.cachedRequest (${cwd.href}/node_modules/vite-node/dist/client.mjs:206:14) | ||
at VitestExecutor.dependencyRequest (${cwd.href}/node_modules/vite-node/dist/client.mjs:259:12) | ||
at ${cwd.pathname}/src/reporters/__tests__/fancy.reporter.functional.spec.mts:9:1 | ||
at VitestExecutor.runModule (${cwd.href}/node_modules/vite-node/dist/client.mjs:399:5) | ||
at VitestExecutor.directRequest (${cwd.href}/node_modules/vite-node/dist/client.mjs:381:5) | ||
at VitestExecutor.cachedRequest (${cwd.href}/node_modules/vite-node/dist/client.mjs:206:14) | ||
at VitestExecutor.executeId (${cwd.href}/node_modules/vite-node/dist/client.mjs:173:12) | ||
` | ||
|
||
export default error |
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
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
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
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
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
Oops, something went wrong.