-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove dead code/config related to Mocha unit tests (#25492)
## **Description** Our test scripts and configuration have been updated to remove things that were used for our Mocha unit tests, which have been converted to Jest. This unblocks the creation of a test coverage quality gate (previously this was blocked by a bug in our "merge coverage" step, which merged Mocha and Jest coverage). [](https://codespaces.new/MetaMask/metamask-extension/pull/25492?quickstart=1) ## **Related issues** None ## **Manual testing steps** N/A ## **Screenshots/Recordings** N/A ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --------- Co-authored-by: MetaMask Bot <[email protected]>
- Loading branch information
1 parent
765370f
commit bda7cdd
Showing
13 changed files
with
123 additions
and
588 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,23 +1,6 @@ | ||
module.exports = { | ||
// TODO: Remove the `exit` setting, it can hide broken tests. | ||
exit: true, | ||
ignore: [ | ||
'./app/scripts/lib/**/*.test.js', | ||
'./app/scripts/migrations/*.test.js', | ||
'./app/scripts/platforms/*.test.js', | ||
'./app/scripts/controllers/app-state.test.js', | ||
'./app/scripts/controllers/permissions/**/*.test.js', | ||
'./app/scripts/controllers/mmi-controller.test.ts', | ||
'./app/scripts/metamask-controller.actions.test.js', | ||
'./app/scripts/detect-multiple-instances.test.js', | ||
'./app/scripts/controllers/swaps.test.js', | ||
'./app/scripts/controllers/metametrics.test.js', | ||
'./app/scripts/controllers/preferences.test.js', | ||
'./app/scripts/constants/error-utils.test.js', | ||
'./app/scripts/metamask-controller.test.js', | ||
'./development/fitness-functions/**/*.test.ts', | ||
'./test/e2e/helpers.test.js', | ||
], | ||
recursive: true, | ||
require: ['test/env.js', 'test/setup.js'], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains 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.