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

Replace Karma + Mocha with Jest #30

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

havardholvik
Copy link
Collaborator

@havardholvik havardholvik commented Oct 31, 2023

Replace Karma + Mocha with Jest.

📦 Published PR as canary version: 1.3.7--canary.30.6719332745.0

✨ Test out this PR locally via:

npm install @whereby/jslib-media@1.3.7--canary.30.6719332745.0
# or 
yarn add @whereby/jslib-media@1.3.7--canary.30.6719332745.0

@havardholvik havardholvik force-pushed the holvik/replace_karma_jest branch 5 times, most recently from 08a1fc9 to 3b61954 Compare October 31, 2023 20:36
@havardholvik havardholvik marked this pull request as ready for review October 31, 2023 20:36
@havardholvik havardholvik changed the title [Draft] Replace Karma + Mocha with Jest Replace Karma + Mocha with Jest Oct 31, 2023
@havardholvik havardholvik force-pushed the holvik/replace_karma_jest branch 2 times, most recently from e057ad8 to b73b043 Compare October 31, 2023 21:12
.eslintrc Show resolved Hide resolved
@havardholvik havardholvik force-pushed the holvik/replace_karma_jest branch 2 times, most recently from 374db8a to 35a3e0b Compare November 1, 2023 07:40
Copy link
Member

@thyal thyal left a comment

Choose a reason for hiding this comment

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

Super nice clean up! The logs are shown in console when running the tests, which makes it difficult to read (there's a lot..). Maybe we should disable the debug logs for the tests? what do you think?

@havardholvik
Copy link
Collaborator Author

Super nice clean up! The logs are shown in console when running the tests, which makes it difficult to read (there's a lot..). Maybe we should disable the debug logs for the tests? what do you think?

I also dont like this output. I was wondering if we should take these log tweaks on in the separate task we have for the SDK to prevent logs in console. Maybe we just need to make the logging configurable from the calling environment....?

Copy link
Member

@thyal thyal left a comment

Choose a reason for hiding this comment

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

🍰 Nice, looks great!

To align with our other repos, replace the ageing Karma + Mocha setup in
favour of Jest.

Also makes logging configurable

To avoid logs filling up test reports, and potentially end user
consoles, make logging configurable. Defaults to the previous behaviour,
meaning logging is enabled unless explicitly disabled.
@havardholvik havardholvik force-pushed the holvik/replace_karma_jest branch from dabaa18 to bd47dd3 Compare November 1, 2023 11:57
@havardholvik havardholvik merged commit bc8f3ef into main Nov 1, 2023
3 checks passed
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.

2 participants