Skip to content

Commit c06ffc1

Browse files
authored
chore: add the build script to the pretest script. (#539)
This small change allows a developer to just run npm install and then npm test without having to run the build step separately, which compiles the schema that is needed to run the tests successfully. Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
1 parent 7ff64f8 commit c06ffc1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: package-lock.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint:js": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' cucumber.js",
1414
"lint:md": "remark .",
1515
"lint:fix": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' --fix",
16-
"pretest": "npm run lint && npm run conformance",
16+
"pretest": "npm run lint && npm run build && npm run conformance",
1717
"test": "mocha --require ts-node/register ./test/integration/**/*.ts",
1818
"test:one": "mocha --require ts-node/register",
1919
"conformance": "cucumber-js ./conformance/features/*-protocol-binding.feature -p default",

0 commit comments

Comments
 (0)