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>
This commit is contained in:
Lucas Holmquist 2023-05-01 17:30:12 -04:00 committed by GitHub
parent 7ff64f8b82
commit c06ffc1963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
package-lock.json generated
View File

@ -51,6 +51,9 @@
"typescript": "^4.3.5",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"engines": {
"node": ">=12 <20.0.0"
}
},
"node_modules/@ampproject/remapping": {

View File

@ -13,7 +13,7 @@
"lint:js": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' cucumber.js",
"lint:md": "remark .",
"lint:fix": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' --fix",
"pretest": "npm run lint && npm run conformance",
"pretest": "npm run lint && npm run build && npm run conformance",
"test": "mocha --require ts-node/register ./test/integration/**/*.ts",
"test:one": "mocha --require ts-node/register",
"conformance": "cucumber-js ./conformance/features/*-protocol-binding.feature -p default",