Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 64b9103

Browse files
committed
Move react-app to a new folder in order to reuse cypress tests for other browser apps
1 parent a0d70b6 commit 64b9103

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4242
-2106
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
# dependencies
77
/node_modules
8-
/test-e2e/react-app/node_modules
9-
/test-e2e/react-app/build
10-
/test-e2e/react-app/cypress/fixtures
11-
/test-e2e/react-app/cypress/screenshots
128

139
# tests
1410
/coverage

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ script:
2424
- npm run lint
2525
- npm run test
2626
- npm run build
27-
- cd test-e2e/react-app
27+
- cd test-e2e/browser
2828
- npm ci
29+
- cd react-app
30+
- npm ci
31+
- cd ..
2932
- npm run cypress:install
3033
- npm run cypress:verify
31-
- npm run test:ci
34+
- npm run test:react-app:ci
3235
- cd ../..
3336
- npm run coveralls
3437
- 'if [ -n "$SONAR_TOKEN" ]; then sonar-scanner -Dsonar.login=${SONAR_TOKEN}; fi'

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"module": "dist/index.esm.js",
2525
"scripts": {
2626
"build": "rollup --config",
27-
"lint": "eslint index.js test src jest.config.js test-e2e/react-app/src test-e2e/react-app/cypress",
27+
"lint": "eslint index.js test src jest.config.js test-e2e/browser/react-app/src test-e2e/browser/cypress",
2828
"lint-staged": "lint-staged",
2929
"test": "jest",
3030
"coveralls": "cat ./coverage/lcov.info | coveralls"
@@ -60,8 +60,8 @@
6060
"src/**/*.js": "eslint",
6161
"index.js": "eslint",
6262
"jest.config.js": "eslint",
63-
"test-e2e/react-app/src/**/*.js": "eslint",
64-
"test-e2e/react-app/cypress/**/*.js": "eslint"
63+
"test-e2e/browser/react-app/src/**/*.js": "eslint",
64+
"test-e2e/browser/cypress/**/*.js": "eslint"
6565
},
6666
"husky": {
6767
"hooks": {
File renamed without changes.

test-e2e/browser/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
3+
# See https://help.github.com/ignore-files/ for more about ignoring files.
4+
5+
#environment variables
6+
.env
7+
8+
# dependencies
9+
/node_modules
10+
/cypress/fixtures
11+
/cypress/screenshots
12+
13+
# tests
14+
/coverage
15+
/dist
16+
17+
# misc
18+
.DS_Store
19+
.env.local
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# ides
29+
.idea
30+
.vs
File renamed without changes.

0 commit comments

Comments
 (0)