From de9f427364e9a1743b66c4091ebc89478698a3df Mon Sep 17 00:00:00 2001 From: Germain Date: Wed, 8 Dec 2021 12:34:34 +0000 Subject: [PATCH] Update outdated unit test info in README.md (#20096) --- README.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 38f8caeecb..2c1a4a18f9 100644 --- a/README.md +++ b/README.md @@ -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