Skip to content

Commit 0651554

Browse files
committed
Start server on Travis CI to run Cypress tests
1 parent 362e84b commit 0651554

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ script:
1010
- yarn build
1111
- yarn test
1212
- yarn test:coverage
13+
- yarn start:ci
1314
- yarn cypress:run
1415

1516
after_success:

cypress/integration/about.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* globals context, cy */
22
context('About', () => {
33
beforeEach(() => {
4-
cy.visit('http://localhost:8081/about');
4+
cy.visit('http://localhost:8080/about');
55
});
66

77
describe('Header', () => {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"scripts": {
1717
"start": "webpack-dev-server --mode development",
18+
"start:ci": "npm start & wait-on http://localhost:8080",
1819
"format": "prettier --write \"src/**/*.js\"",
1920
"stats": "webpack-bundle-analyzer stats/stats.json",
2021
"build": "webpack --mode production",

0 commit comments

Comments
 (0)