Update outdated unit test info in README.md (#20096)

This commit is contained in:
Germain 2021-12-08 12:34:34 +00:00 committed by GitHub
parent b0abbfacd4
commit de9f427364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,20 +375,11 @@ Running the tests
-----------------
There are a number of application-level tests in the `tests` directory; these
are designed to run in a browser instance under the control of
[karma](https://karma-runner.github.io). To run them:
are designed to run with Jest and JSDOM. To run them
* Make sure you have Chrome installed (a recent version, like 59)
* Make sure you have `matrix-js-sdk` and `matrix-react-sdk` installed and
built, as above
* `yarn test`
The above will run the tests under Chrome in a `headless` mode.
You can also tell karma to run the tests in a loop (every time the source
changes), in an instance of Chrome on your desktop, with `yarn
test-multi`. This also gives you the option of running the tests in 'debug'
mode, which is useful for stepping through the tests in the developer tools.
```
yarn test
```
### End-to-End tests