test: unit tests for commands/serve/web/connect.js file (#937)

* refactor: `connect()` and `openApp()`

* test: connect function covered

* chore: renaming jests test commands

* chore: adding override rule for non `commands/serve` directories to skip jest rules

* test: openApp() covered

* test: `getConnectionInfo()` covered

* test: covering parseEngineURL() and getParams()

* chore: switching jest test files to `.inspect` to prevent conflict with aw
This commit is contained in:
Ahmad Mirzaei
2022-09-27 13:21:17 +02:00
committed by GitHub
parent 5990d85a95
commit 58e375820c
7 changed files with 525 additions and 32 deletions

View File

@@ -1,2 +1,3 @@
import '@testing-library/jest-dom';
import 'whatwg-fetch';
import 'jest-location-mock';