Skip to content

Commit

Permalink
fix(tees-integration): fix integration-test with forever
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Oct 7, 2019
1 parent 6fb8f2d commit 5e79b96
Show file tree
Hide file tree
Showing 4 changed files with 567 additions and 80 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"private": true,
"devEngines": {
"node": "8.x || 9.x"
"node": "8.x || 9.x || 10.x"
},
"workspaces": [
"packages/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/tees-integration/integration-test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Bing search', () => {
describe('Default page', () => {
test({
title: 'Search Ringcentral and check the result include Ringcentral',
title: 'check text include "Learn React" in default page',
}, async ({ page }) => {
const text = await $(page).getText('@App-link');
expect(text).toMatch('Learn React');
Expand Down
6 changes: 4 additions & 2 deletions packages/tees-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"babel-preset-react-app": "^9.0.2",
"camelcase": "^5.2.0",
"case-sensitive-paths-webpack-plugin": "2.2.0",
"concurrently": "^5.0.0",
"css-loader": "2.1.1",
"dotenv": "6.2.0",
"dotenv-expand": "5.1.0",
Expand All @@ -28,6 +27,7 @@
"eslint-plugin-react": "7.14.3",
"eslint-plugin-react-hooks": "^1.6.1",
"file-loader": "3.0.1",
"forever": "^1.0.0",
"fs-extra": "7.0.1",
"html-webpack-plugin": "4.0.0-beta.5",
"identity-obj-proxy": "3.0.0",
Expand Down Expand Up @@ -66,7 +66,9 @@
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"test": "concurrently \"yarn start\" \"wait-on tcp:3000 && tees run integration-test/** -H\" -k"
"forever:start": "forever start scripts/start.js",
"forever:stop": "forever stop scripts/start.js",
"test": "yarn forever:start && wait-on tcp:3000 && tees run integration-test/** -H && yarn forever:stop"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
Loading

0 comments on commit 5e79b96

Please sign in to comment.