[tests][m]: Setup Integration Tests with Cypress (#26).

* [cypress][s]-setup-integration=with-cypress
* [fix][s]- fix typescript bug 'All files must be modules when the '--isolatedModules' flag is provided' by adding an 'export {}' to all test files
* Fixes of cypress tests
* Use yarn everywhere not npm

Co-authored-by: Abhishek Gahlot <me@abhishek.it>
This commit is contained in:
Gift Egwuenu
2020-07-17 16:16:26 +01:00
committed by GitHub
parent 3cc1c1dca8
commit d9b5c4ddbd
13 changed files with 1435 additions and 728 deletions

16
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Cypress Integration Tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cypress run
uses: cypress-io/github-action@v1
with:
browser: chrome
build: yarn run build
start: yarn start
wait-on: 'http://localhost:3000'