Skip to content

Commit

Permalink
test(ui): tests in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 12, 2018
1 parent 1b7b5f8 commit caf3c24
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-e2e-cypress/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = api => {
onBeforeRun: ({ answers, args }) => {
if (answers.headless) args.push('--headless')
if (answers.mode) args.push('--mode', answers.mode)
if (answers.url) args.push('--url', answers.url)
if (answers.url) args.push('--url=' + answers.url)
}
})
}
4 changes: 4 additions & 0 deletions packages/@vue/cli-ui/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/public
/live
/live-test
/tests
7 changes: 5 additions & 2 deletions packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
"run-graphql-api": "vue-cli-service run-graphql-api",
"run-test-graphql-api": "cross-env NODE_ENV=test yarn run graphql-api",
"prepublishOnly": "yarn run lint --no-fix && yarn run build",
"test:e2e:run": "vue-cli-service test:e2e --mode development",
"test:e2e": "start-server-and-test run-test-graphql-api http://localhost:4000 test:e2e:run"
"test:e2e:dev": "vue-cli-service test:e2e --mode development",
"test:e2e:run": "vue-cli-service test:e2e --mode production --headless --url=http://localhost:4000",
"test:e2e": "start-server-and-test run-test-graphql-api http://localhost:4000 test:e2e:dev",
"test:run": "start-server-and-test run-test-graphql-api http://localhost:4000 test:e2e:run",
"test": "yarn run build && cd ../cli-ui-addon-webpack && yarn run build && cd ../cli-ui && yarn run test:run"
},
"dependencies": {
"clone": "^2.1.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/@vue/cli-ui/tests/e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/screenshots
/videos

0 comments on commit caf3c24

Please sign in to comment.