Skip to content

Commit

Permalink
Using the latest (post-refactor) version of run-amock
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Oct 11, 2024
1 parent 05794ec commit c068172
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"lint-sass": "stylelint '**/*.scss'",
"watch-live-reload": "grunt watch",
"test": "rm -rf ./pacts && NODE_ENV=test mocha --exclude **/*.cy.test.js '!(node_modules)/**/*.test'.js",
"cypress:server": "http-configurable-mock-server --port=8000 | node -r dotenv/config start.js dotenv_config_path=test/cypress/test.env",
"cypress:server": "run-amock --port=8000 | node -r dotenv/config start.js dotenv_config_path=test/cypress/test.env",
"cypress:test": "cypress run",
"cypress:test-headed": "cypress open",
"snyk-protect": "snyk-protect",
Expand Down Expand Up @@ -108,7 +108,7 @@
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@govuk-pay/http-configurable-mock-server": "github:alphagov/http-configurable-mock-server#ac13d2d",
"@govuk-pay/run-amock": "github:alphagov/govuk-pay-run-amock#8632a53",
"@pact-foundation/pact": "^12.1.1",
"@pact-foundation/pact-core": "^14.0.5",
"@snyk/protect": "^1.1235.x",
Expand Down
4 changes: 2 additions & 2 deletions test/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const axios = require('axios')

module.exports = (on, config) => {
const stubSetupUrl = config.env.MOCK_HTTP_SERVER_URL + '/__add-mock-endpoints__'
const stubResetUrl = config.env.MOCK_HTTP_SERVER_URL + '/__clear-all-endpoints__'
const stubResetUrl = config.env.MOCK_HTTP_SERVER_URL + '/__clear-mock-endpoints__'

// common task definitions - used by all test specs
on('task', {
Expand All @@ -16,7 +16,7 @@ module.exports = (on, config) => {
setupStubs (stubs) {
return axios.post(stubSetupUrl,
{
port: config.env.MOUNTEBANK_IMPOSTERS_PORT,
port: config.env.MOCK_HTTP_SERVER_PORT,
protocol: 'http',
stubs
}
Expand Down

0 comments on commit c068172

Please sign in to comment.