diff --git a/tests/demo/package.json b/tests/demo/package.json index bcf2f75..ebb098b 100644 --- a/tests/demo/package.json +++ b/tests/demo/package.json @@ -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" }, diff --git a/tests/demo/src/vue-apollo.js b/tests/demo/src/vue-apollo.js index 78fd0ea..d67d10e 100644 --- a/tests/demo/src/vue-apollo.js +++ b/tests/demo/src/vue-apollo.js @@ -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