Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use tsx for E2E tests instead of ts-node (#25399)
On my computer, it took 17 seconds just to launch Mocha for an E2E test. Not launch a browser, not start chromedriver/Ganache, not withFixtures. 17 seconds just to launch Mocha and do nothing. And on CircleCI, this 17 seconds happens thousands of times per workflow. A lot of this time was taken by `ts-node`, which has a very slow startup time. I switched to using `tsx`, which is much much faster. [CircleCI Insights on `develop` showing about 16k credits per workflow](https://app.circleci.com/insights/github/MetaMask/metamask-extension/workflows/test_and_release/overview?branch=develop&reporting-window=last-24-hours) [CircleCI Insights on this branch showing about 12k credits per workflow](https://app.circleci.com/insights/github/MetaMask/metamask-extension/workflows/test_and_release/overview?branch=e2e%2Fuse-tsx&reporting-window=last-24-hours) After this is merged and observed for a bit, it may make sense to rebalance some `parallelism` in `config.yml`. --------- Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
- Loading branch information