1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/test/e2e
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
..
fixtures removing the icronUrl in tokens fron the state.json for fixtures (#12309) 2021-10-08 13:50:08 -02:30
mock-3box Refactoring threebox.spec.js to use fixtures (#10849) 2021-04-08 19:53:18 -04:00
send-eth-with-private-key-test I5849 incremental account security (#6874) 2019-08-02 01:27:26 -02:30
tests Lavamoat build system integration for WebApp (#12242) 2021-10-05 12:06:31 -10:00
webdriver test/e2e/driver/switchToWindowWithTitle - refresh window handles on each retry loop (#12237) 2021-09-28 12:40:07 -10:00
benchmark.js Fix 'yarn setup' on M1 Macs (#11887) 2021-09-01 10:40:40 -06:00
fixture-server.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
ganache.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
helpers.js Update helpers.js (#12236) 2021-09-28 09:32:05 -10:00
metamask-ui.spec.js UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
metrics.spec.js add appropriate test timeouts (#11667) 2021-08-10 15:09:42 -07:00
run-all.js Add run-e2e-test.js script (#11301) 2021-06-15 15:21:25 -02:30
run-e2e-test.js Simplify Mocha npm scripts (#12313) 2021-10-12 10:10:33 -02:30
x-server.js Fix 'yarn setup' on M1 Macs (#11887) 2021-09-01 10:40:40 -06:00