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:
parent
7ff64f8b82
commit
c06ffc1963
|
@ -51,6 +51,9 @@
|
||||||
"typescript": "^4.3.5",
|
"typescript": "^4.3.5",
|
||||||
"webpack": "^5.74.0",
|
"webpack": "^5.74.0",
|
||||||
"webpack-cli": "^4.10.0"
|
"webpack-cli": "^4.10.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12 <20.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"lint:js": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' cucumber.js",
|
"lint:js": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' cucumber.js",
|
||||||
"lint:md": "remark .",
|
"lint:md": "remark .",
|
||||||
"lint:fix": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' --fix",
|
"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": "mocha --require ts-node/register ./test/integration/**/*.ts",
|
||||||
"test:one": "mocha --require ts-node/register",
|
"test:one": "mocha --require ts-node/register",
|
||||||
"conformance": "cucumber-js ./conformance/features/*-protocol-binding.feature -p default",
|
"conformance": "cucumber-js ./conformance/features/*-protocol-binding.feature -p default",
|
||||||
|
|
Loading…
Reference in New Issue