forked from JeremyHeleine/Photo-Sphere-Viewer
-
-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
8 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 |
---|---|---|
|
@@ -7,5 +7,5 @@ docs/.vitepress/.temp | |
!docs/.typedoc | ||
dist | ||
/public | ||
cypress/reports | ||
/reports | ||
cypress/screenshots |
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,5 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
reporter: path.join(__dirname, 'build/mocha-reporter.js'), | ||
}; |
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,23 @@ | ||
const BaseReporter = require('mocha/lib/reporters/base'); | ||
const SpecReporter = require('mocha/lib/reporters/spec'); | ||
// Cypress breaks the reporter ? | ||
// https://github.com/cypress-io/cypress/issues/27636 | ||
const JsonReporter = require('../node_modules/mocha/lib/reporters/json.js'); | ||
const path = require('path'); | ||
|
||
module.exports = class MultiReporter extends BaseReporter { | ||
constructor(runner, options) { | ||
super(runner, options); | ||
|
||
// mocha uses "reporterOption", cypress uses "reporterOptions" | ||
const title = options.reporterOption?.title ?? options.reporterOptions?.title ?? 'report'; | ||
|
||
new SpecReporter(runner, {}); | ||
|
||
new JsonReporter(runner, { | ||
reporterOption: { | ||
output: path.join(__dirname, '../reports', `${title}.json`), | ||
}, | ||
}); | ||
} | ||
}; |
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