Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Migrate to Jest#173

Merged
mikesposito merged 1 commit intomainfrom
test/migrate-to-jest
Apr 27, 2023
Merged

Migrate to Jest#173
mikesposito merged 1 commit intomainfrom
test/migrate-to-jest

Conversation

@mikesposito
Copy link
Copy Markdown
Member

@mikesposito mikesposito commented Apr 26, 2023

This PR converts unit tests to jest, from mocha + chai.
Also, jest-it-up has been added.

Fixes #165
Fixes #157

@mikesposito mikesposito requested a review from a team as a code owner April 26, 2023 11:12
@socket-security
Copy link
Copy Markdown

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

➕ Added Package Capability Access +/- Transitive Count Publisher
@metamask/eslint-config-jest@8.0.0 None +1 rekmarks
jest-it-up@2.2.0 filesystem +10 rbardini
jest@28.1.3 network +137 simenb
ts-jest@28.0.8 network, environment +140 kul
@types/jest@28.1.8 eval, environment +21 types
eslint-plugin-jest@24.7.0 None +0 simenb

🚮 Removed packages: @metamask/eslint-config-mocha@8.0.0, @types/chai@4.3.4, @types/chai-spies@1.0.3, @types/mocha@5.2.7, chai@4.3.7, chai-spies@1.0.0, eslint-plugin-mocha@8.2.0, mocha@5.2.0

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@mikesposito mikesposito merged commit 408caff into main Apr 27, 2023
@mikesposito mikesposito deleted the test/migrate-to-jest branch April 27, 2023 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from Mocha/Chai to Jest Standardize repository

2 participants