1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test
Mark Stacey e4cf12674e
Simplify Mocha npm scripts (#12313)
The npm scripts used to run Mocha scripts have been greatly simplified.
As we transition more tests from Mocha to Jest it was becoming
increasingly difficult to update the CLI arguments to keep all of these
scripts working correctly. This reorganization should make that process
much simpler.

The base Mocha options are in `.mocharc.js` - all except for the target
tests to run. Those are still given via the CLI. There is a second
config file specifically for the `test:unit:lax` tests (i.e. the Mocha
tests that have no coverage requirements) because it requires a change
to the `ignored` configuration property. We can create an additional
configuration file for each test script we add that needs further
configuration changes.

The `test:unit:path` script used to be used to run Mocha tests at a
given path. Now that can be done using `yarn mocha` instead, so this
script has been removed.

The `yarn watch` command has been broken for some time now, so it has
been removed as well. Mocha tests can still be run with a file watcher
using `yarn mocha --watch <path>` or `yarn test:unit:mocha --watch`.

The README has been updated to remove references about the `watch`
command that was removed. I considered explaining the other test
scripts there as well, but they were difficult to explain I will
attempt to update the README after making further simplifications
instead.
2021-10-12 10:10:33 -02:30
..
data Fix gas control flicker on send screen when switching between EIP-1559 networks (#12230) 2021-09-30 17:27:59 +05:30
e2e Simplify Mocha npm scripts (#12313) 2021-10-12 10:10:33 -02:30
helpers Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
jest removing the icronUrl in tokens fron the state.json for fixtures (#12309) 2021-10-08 13:50:08 -02:30
lib remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
mocks @metamask/controllers@15.0.0 (#11975) 2021-08-31 12:27:13 -07:00
stub Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00
unit-global lockdown - breakout making globalThis properties non-writable (#12258) 2021-10-01 08:53:12 -10:00
env.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
setup.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
test-unit-combined.sh Fix unit test package scripts (#12278) 2021-10-06 07:35:23 -07:00
test-unit-jest.sh Fix unit test package scripts (#12278) 2021-10-06 07:35:23 -07:00