Run unit tests against node.js too (#137790)

* tests - run unit tests also against node.js

* fixes

* fail if major node.js version mismatch

* -tfs is unsupported

* Add `@ts-check` and remove `jsdom`

* tests - process.env layer breaker

* Improve loader config

* skip one test

* address todos

* try to force color output

* Use a file: URI as baseUrl

Co-authored-by: Alex Dima <alexdima@microsoft.com>
This commit is contained in:
Benjamin Pasero
2021-11-24 13:45:17 +01:00
committed by GitHub
parent bb7a76bf2b
commit 754190f326
15 changed files with 114 additions and 208 deletions

View File

@@ -72,6 +72,9 @@ jobs:
- name: Run Unit Tests (Electron)
run: .\scripts\test.bat
- name: Run Unit Tests (node.js)
run: yarn test-node
- name: Run Unit Tests (Browser)
run: yarn test-browser --browser chromium
@@ -147,6 +150,10 @@ jobs:
id: electron-unit-tests
run: DISPLAY=:10 ./scripts/test.sh
- name: Run Unit Tests (node.js)
id: nodejs-unit-tests
run: yarn test-node
- name: Run Unit Tests (Browser)
id: browser-unit-tests
run: DISPLAY=:10 yarn test-browser --browser chromium
@@ -222,6 +229,9 @@ jobs:
- name: Run Unit Tests (Electron)
run: DISPLAY=:10 ./scripts/test.sh
- name: Run Unit Tests (node.js)
run: yarn test-node
- name: Run Unit Tests (Browser)
run: DISPLAY=:10 yarn test-browser --browser chromium