chore(test): change server port
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"apollo:dev": "vue-cli-service apollo:watch",
|
||||
"apollo:run": "vue-cli-service apollo:run",
|
||||
"test:e2e:dev": "start-server-and-test apollo:dev http://localhost:4000/.well-known/apollo/server-health test:e2e:dev:client",
|
||||
"apollo:run": "vue-cli-service apollo:run --port 4042",
|
||||
"test:e2e:dev": "start-server-and-test apollo:dev http://localhost:4042/.well-known/apollo/server-health test:e2e:dev:client",
|
||||
"test:e2e:dev:client": "vue-cli-service test:e2e --mode development",
|
||||
"test:e2e": "start-server-and-test apollo:run http://localhost:4000/.well-known/apollo/server-health test:e2e:client",
|
||||
"test:e2e": "start-server-and-test apollo:run http://localhost:4042/.well-known/apollo/server-health test:e2e:client",
|
||||
"test:e2e:client": "vue-cli-service test:e2e --mode production --headless",
|
||||
"test": "yarn run lint --no-fix && yarn run test:e2e"
|
||||
},
|
||||
|
||||
@@ -11,10 +11,10 @@ const AUTH_TOKEN = 'apollo-token'
|
||||
// Config
|
||||
const defaultOptions = {
|
||||
// You can use `https` for secure connection (recommended in production)
|
||||
httpEndpoint: process.env.VUE_APP_GRAPHQL_HTTP || 'http://localhost:4000/graphql',
|
||||
httpEndpoint: process.env.VUE_APP_GRAPHQL_HTTP || 'http://localhost:4042/graphql',
|
||||
// You can use `wss` for secure connection (recommended in production)
|
||||
// Use `null` to disable subscriptions
|
||||
wsEndpoint: process.env.VUE_APP_GRAPHQL_WS || 'ws://localhost:4000/graphql',
|
||||
wsEndpoint: process.env.VUE_APP_GRAPHQL_WS || 'ws://localhost:4042/graphql',
|
||||
// LocalStorage token
|
||||
tokenName: AUTH_TOKEN,
|
||||
// Enable Automatic Query persisting with Apollo Engine
|
||||
|
||||
Reference in New Issue
Block a user