Skip to content

Commit 9fd276c

Browse files
committed
headless
1 parent 3a4bf79 commit 9fd276c

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ notifications:
2525
script:
2626
- npm run lintnofix
2727
- npm run build
28-
- npm install -g serve
2928
- npm run testcafe
3029
# blocklist
3130
branches:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:install": "npm install && npm run lintnofix && npm run build",
1111
"snapshot": "react-snap",
1212
"test": "react-scripts test --env=jsdom",
13-
"testcafe": "testcafe -c 4 chrome testcafe/ --app \"serve -s build\"",
13+
"testcafe": "testcafe -c 4 \"chrome:headless\" testcafe/ --app \"react-scripts start\"",
1414
"eject": "react-scripts eject",
1515
"analyze": "source-map-explorer build/static/js/main.* --html",
1616
"lint": "eslint . --ext .js,.jsx --fix",

testcafe/testsUtility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
waitForReact,
1010
} from 'testcafe-react-selectors';
1111

12-
export const host = 'http://localhost:5000';
12+
export const host = 'http://localhost:3000';
1313

1414
async function fetchFromAPI(requestURL) {
1515
const response = await fetch(requestURL);

0 commit comments

Comments
 (0)