-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Force custom reporters to use bundled mocha version #6951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3007aa6
chunk: remove npmInstall logic in helper/e2e script, force custom rep…
kuceb ac69d41
remove mocha imports from proxy_perf spec
kuceb 282c04a
try mocha 4.1.0, fix spec globbing, rename file
kuceb c0ef7eb
use mocha 4.1.0 in server/reporter
kuceb 7133df7
try to get 7.1.0 working in server/reporter
kuceb eef69a8
use mocha 7.0.1 in server/reporter, and for custom reporters
kuceb 9907f6b
update snapshots for new mocha version
kuceb 453e402
update snapshots for new mocha version #2
kuceb 56fad72
Merge remote-tracking branch 'origin/develop' into use-bundled-mocha-…
kuceb 4ff3a18
fix merge
kuceb a127e00
more snapshot updates
kuceb ebefa9a
Merge branch 'develop' into use-bundled-mocha-for-reporters
kuceb 0633f82
fix glob in server tests
kuceb 9aeae3e
Merge remote-tracking branch 'origin/develop' into use-bundled-mocha-…
kuceb 0893ecc
fix server/unit/reporter.spec
kuceb dda1123
fix more specs
kuceb 50914da
Merge remote-tracking branch 'origin/develop' into use-bundled-mocha-…
kuceb 3f1cb80
remove unneeded e2e/package.json deps
kuceb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -53,7 +53,10 @@ | |
| "mocha": "7.0.1", | ||
| "moment": "2.24.0", | ||
| "morgan": "1.9.1", | ||
| "npm-install-version": "6.0.2", | ||
| "react-15.6.1": "npm:[email protected]", | ||
| "react-16.0.0": "npm:[email protected]", | ||
| "react-dom-15.6.1": "npm:[email protected]", | ||
| "react-dom-16.0.0": "npm:[email protected]", | ||
| "setimmediate": "1.0.5", | ||
| "sinon": "8.1.1", | ||
| "text-mask-addons": "3.8.0", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| _ = require("lodash") | ||
| fs = require("fs") | ||
| niv = require("npm-install-version") | ||
| auth = require("basic-auth") | ||
| bodyParser = require("body-parser") | ||
| express = require("express") | ||
|
|
@@ -11,12 +10,6 @@ coffee = require("@packages/coffee") | |
|
|
||
| args = require("minimist")(process.argv.slice(2)) | ||
|
|
||
| ## make sure we have both versions of react | ||
| niv.install("[email protected]") | ||
| niv.install("[email protected]") | ||
| niv.install("[email protected]") | ||
| niv.install("[email protected]") | ||
|
|
||
kuceb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [3500, 3501].forEach (port) -> | ||
| app = express() | ||
| server = http.Server(app) | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -130,7 +130,7 @@ finished! | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome passes with mochawesome@1.5.2 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome passes with mochawesome-1.5.2 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
@@ -197,7 +197,7 @@ exports['e2e reporters mochawesome passes with [email protected] npm custom repo | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome fails with mochawesome@1.5.2 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome fails with mochawesome-1.5.2 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
@@ -314,7 +314,7 @@ Because this error occurred during a \`after all\` hook we are skipping the rema | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome passes with mochawesome@2.3.1 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome passes with mochawesome-2.3.1 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
@@ -379,7 +379,7 @@ exports['e2e reporters mochawesome passes with [email protected] npm custom repo | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome fails with mochawesome@2.3.1 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome fails with mochawesome-2.3.1 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
@@ -494,7 +494,7 @@ Because this error occurred during a \`after all\` hook we are skipping the rema | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome passes with mochawesome@3.0.1 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome passes with mochawesome-3.0.1 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
@@ -559,7 +559,7 @@ exports['e2e reporters mochawesome passes with [email protected] npm custom repo | |
|
|
||
| ` | ||
|
|
||
| exports['e2e reporters mochawesome fails with mochawesome@3.0.1 npm custom reporter 1'] = ` | ||
| exports['e2e reporters mochawesome fails with mochawesome-3.0.1 npm custom reporter 1'] = ` | ||
|
|
||
| ==================================================================================================== | ||
|
|
||
|
|
||
This file contains hidden or 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,21 @@ | ||
| const Module = require('module') | ||
|
|
||
| export const overrideRequire = (requireOverride) => { | ||
| const _load = Module._load | ||
|
|
||
| Module._load = function (...args: any[]) { | ||
| let pkg = args | ||
jennifer-shehane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| if (requireOverride) { | ||
| const mockedDependency = requireOverride(pkg[0], _load) | ||
|
|
||
| if (mockedDependency != null) { | ||
| return mockedDependency | ||
| } | ||
| } | ||
|
|
||
| const ret = _load.apply(this, pkg) | ||
|
|
||
| return ret | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -81,7 +81,8 @@ | |
| "mime": "2.4.4", | ||
| "minimatch": "3.0.4", | ||
| "minimist": "1.2.5", | ||
| "mocha": "2.4.5", | ||
| "mocha-2.4.5": "npm:[email protected]", | ||
kuceb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "mocha-4.1.0": "npm:[email protected]", | ||
| "mocha-junit-reporter": "1.23.1", | ||
| "mocha-teamcity-reporter": "3.0.0", | ||
| "moment": "2.24.0", | ||
|
|
@@ -164,12 +165,15 @@ | |
| "http-mitm-proxy": "0.7.0", | ||
| "https-proxy-agent": "3.0.1", | ||
| "istanbul": "0.4.5", | ||
| "mocha": "7.0.1", | ||
| "mochawesome-1.5.2": "npm:[email protected]", | ||
| "mochawesome-2.3.1": "npm:[email protected]", | ||
| "mochawesome-3.0.1": "npm:[email protected]", | ||
| "mock-fs": "4.10.4", | ||
| "mocked-env": "1.2.4", | ||
| "mockery": "2.1.0", | ||
| "multiparty": "4.2.1", | ||
| "nock": "12.0.2", | ||
| "npm-install-version": "6.0.2", | ||
| "proxyquire": "2.1.0", | ||
| "react": "15.6.2", | ||
| "repl.history": "0.1.4", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.