Comparing version 1.0.2 to 1.1.0
@@ -14,4 +14,4 @@ # Contributing to Mock Commander | ||
``` | ||
yarn install | ||
docker-compose run cucumber yarn cucumber | ||
docker compose run script yarn install | ||
docker compose run cucumber yarn cucumber | ||
``` | ||
@@ -22,24 +22,9 @@ | ||
Start Mitmweb: | ||
After running `docker compose up` Mitmproxy debugger will be available from | ||
your web browser at http://localhost:8081/. Then Cucumber tests can be run with: | ||
``` | ||
docker-compose \ | ||
-f ./docker-compose.yml \ | ||
-f ./docker-compose.proxy.yml \ | ||
up --detach | ||
docker-compose run cucumber yarn cucumber | ||
``` | ||
Browse to Mitmweb at http://localhost:8081/ then run tests: | ||
``` | ||
docker-compose \ | ||
-f ./docker-compose.yml \ | ||
-f ./docker-compose.proxy.yml \ | ||
run cucumber yarn cucumber | ||
``` | ||
### Publishing | ||
Tagged commits are automatically published by the Travis pipeline. The tag name | ||
should match the version in package.json. | ||
HTTP traffic will be visible from the Mitmweb UI. |
@@ -5,3 +5,3 @@ const { setWorldConstructor, BeforeAll, AfterAll } = require('cucumber'); | ||
const url = require('url'); | ||
const expect = require('expect'); | ||
const { expect } = require('expect'); | ||
const config = require('./config'); | ||
@@ -8,0 +8,0 @@ const factory = require('./factory'); |
const cmdRegistry = require('../cmd-registry'); | ||
const path = require('path'); | ||
const _ = require('lodash'); | ||
const _get = require('lodash.get'); | ||
@@ -117,3 +117,3 @@ describe('cmd-registry', () => { | ||
const cmd = _.get(cmdRegistry.cmds, [type, ...path]); | ||
const cmd = _get(cmdRegistry.cmds, [type, ...path]); | ||
@@ -120,0 +120,0 @@ describe(`${[type, ...path].join('.')}`, () => { |
{ | ||
"name": "mock-cmdr", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Wiremock Client", | ||
@@ -9,2 +9,3 @@ "main": "lib/index.js", | ||
"license": "Apache-2.0", | ||
"packageManager": "yarn@4.0.2", | ||
"scripts": { | ||
@@ -17,13 +18,15 @@ "lint": "eslint .", | ||
"devDependencies": { | ||
"convict": "^5.2.0", | ||
"cucumber": "^6.0.5", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"factory-bot": "^6.1.4", | ||
"jest": "^25.2.4", | ||
"wait-on": "^4.0.1" | ||
"axios": "^1.6.2", | ||
"convict": "^6.2.4", | ||
"cucumber": "^6.0.7", | ||
"eslint": "^8.55.0", | ||
"eslint-plugin-jest": "^27.6.0", | ||
"factory-bot": "^6.3.1", | ||
"jest": "^29.7.0", | ||
"lodash.get": "^4.4.2", | ||
"wait-on": "^7.2.0" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.21.1" | ||
"peerDependencies": { | ||
"axios": "*" | ||
} | ||
} |
# Mock Commander | ||
[![Build Status](https://travis-ci.org/ncjones/mock-cmdr.svg?branch=master)](https://travis-ci.org/ncjones/mock-cmdr) | ||
Wiremock client for Node JS which promotes separation of dynamic mocking | ||
@@ -7,0 +4,0 @@ commands from test code logic. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56751
60
1098
9
206
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.9(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@^0.21.1
- Removedaxios@0.21.4(transitive)