Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit f5a7b2e

Browse files
committed
Change command names. Use core path option in acceptance tests
1 parent 42df086 commit f5a7b2e

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ addons:
1717

1818
script:
1919
- npm run lint
20-
- npm run test-ci
20+
- npm run test:ci
2121
- npm run coveralls
2222
- 'if [ -n "$SONAR_TOKEN" ]; then sonar-scanner -Dsonar.login=${SONAR_TOKEN}; fi'
2323

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"lint": "eslint index.js src test jest.config.js jest.acceptance.config.js",
2828
"lint-staged": "lint-staged",
2929
"test": "jest",
30-
"test-acceptance": "jest --config=jest.acceptance.config.js --runInBand",
31-
"test-ci": "npm run test && npm run test-acceptance",
30+
"test:acceptance": "jest --config=jest.acceptance.config.js --runInBand",
31+
"test:ci": "npm run test && npm run test:acceptance",
3232
"coveralls": "cat ./coverage/lcov.info | coveralls"
3333
},
3434
"peerDependencies": {
@@ -38,7 +38,7 @@
3838
"express": "4.17.1"
3939
},
4040
"devDependencies": {
41-
"@mocks-server/core": "1.0.0",
41+
"@mocks-server/core": "^1.1.0",
4242
"coveralls": "^3.0.7",
4343
"eslint": "6.6.0",
4444
"eslint-config-prettier": "6.5.0",

test/acceptance/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const fixturesFolder = folderName => {
3535
const startServer = (mocksPath, opts = {}) => {
3636
const mocks = mocksPath || "web-tutorial";
3737
const options = {
38-
behaviors: fixturesFolder(mocks),
38+
path: fixturesFolder(mocks),
3939
...defaultOptions,
4040
...opts
4141
};

0 commit comments

Comments
 (0)