mirror of
https://github.com/overleaf/overleaf.git
synced 2025-12-05 01:10:29 +00:00
* [monorepo] refactor retries in Jenkins to step level Change the junit reports to use step specific file names. The [hash] template option was neat in getting unique file names, but results in duplicate test reports on retry. * [patches] add support for .cjs config files for mocha-multi-reporters GitOrigin-RevId: 3a749441470b5ba633e71319589606cfbe860952
14 lines
683 B
Diff
14 lines
683 B
Diff
diff --git a/node_modules/mocha-multi-reporters/lib/MultiReporters.js b/node_modules/mocha-multi-reporters/lib/MultiReporters.js
|
|
index d61e019..e7a9515 100644
|
|
--- a/node_modules/mocha-multi-reporters/lib/MultiReporters.js
|
|
+++ b/node_modules/mocha-multi-reporters/lib/MultiReporters.js
|
|
@@ -153,7 +153,7 @@ MultiReporters.prototype.getCustomOptions = function (options) {
|
|
debug('options file (custom)', customOptionsFile);
|
|
|
|
try {
|
|
- if ('.js' === path.extname(customOptionsFile)) {
|
|
+ if (['.js', '.cjs'].includes(path.extname(customOptionsFile))) {
|
|
customOptions = require(customOptionsFile);
|
|
}
|
|
else {
|