-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
В этом репозитории находится пример приложения с тестами: | ||
|
||
- [e2e тесты](e2e/example.spec.ts) | ||
- [unit тесты](src/example.test.tsx) | ||
|
||
Для запуска примеров необходимо установить [NodeJS](https://nodejs.org/en/download/) 16 или выше. | ||
|
||
Как запустить: | ||
|
||
```sh | ||
# установить зависимости | ||
npm ci | ||
|
||
# запустить приложение | ||
npm start | ||
``` | ||
|
||
Как запустить e2e тесты: | ||
|
||
```sh | ||
# скачать браузеры | ||
npx playwright install | ||
|
||
# запустить тесты | ||
npm run e2e | ||
``` | ||
|
||
Как запустить модульные тесты: | ||
|
||
```sh | ||
npm test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters