Skip to content
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

chore: replace mocha-circleci-reporter with mocha-multi-reporters #8845

Merged
merged 17 commits into from
May 1, 2024

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Apr 30, 2024

This PR replaces the mocha-circleci-reporter (https://github.com/sandcastle/mocha-circleci-reporter) which is no longer maintained and has a security vulnerability with mocha-multi-reporters, that uses mocha-junit-reporter to output to xml and spec to output to console.

@luvkapur luvkapur changed the title chore: replace circlci-reporter with junit-reporter chore: replace mocha-circleci-reporter with mocha-junit-reporter Apr 30, 2024
# command which support only - for debug purpose
# command: cd bit && npm run e2e-test-circle --debug
environment:
MOCHA_FILE: junit/e2e-test-results.xml
NODE_OPTIONS: --no-warnings --max-old-space-size=5000
# NODE_OPTIONS: --no-warnings --max-old-space-size=5000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luvkapur why did you remove also the max old space?

Copy link
Member Author

@luvkapur luvkapur May 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GiladShoham
because I saw we pass it as part of the script for this command
mocha-circleci": "cross-env NODE_OPTIONS='--no-warnings --max-old-space-size=5000'
I see it is missing here for the e2e-test-circle cmd which I overlooked
e2e-test-circle": "cross-env NODE_OPTIONS=--no-warnings
i will add it there and then we dont need it as part of config.yml since it is redundant

@luvkapur luvkapur changed the title chore: replace mocha-circleci-reporter with mocha-junit-reporter chore: replace mocha-circleci-reporter with mocha-multi-reporters May 1, 2024
@luvkapur luvkapur enabled auto-merge (squash) May 1, 2024 19:11
@luvkapur luvkapur merged commit c26986a into master May 1, 2024
11 checks passed
@luvkapur luvkapur deleted the replace-circleci-reporter branch May 1, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants