fix: test commands should run only project related tests (#10440)

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
pull/10443/head
Gabriel Bernal 3 years ago committed by GitHub
parent 68fdd9c1ce
commit 38ef68e27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,8 +8,8 @@
"build": "npm run build:grammar && npm run build:lib", "build": "npm run build:grammar && npm run build:lib",
"build:grammar": "npx lezer-generator src/grammar/promql.grammar -o src/grammar/parser", "build:grammar": "npx lezer-generator src/grammar/promql.grammar -o src/grammar/parser",
"build:lib": "bash ./build.sh", "build:lib": "bash ./build.sh",
"test": "npm run build:grammar && ts-mocha -p tsconfig.json ./**/*.test.ts", "test": "npm run build:grammar && ts-mocha -p tsconfig.json src/**/*.test.ts",
"test:coverage": "npm run build:grammar && nyc ts-mocha -p ./tsconfig.json ./**/*.test.ts", "test:coverage": "npm run build:grammar && nyc ts-mocha -p tsconfig.json src/**/*.test.ts",
"codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "eslint src/ --ext .ts", "lint": "eslint src/ --ext .ts",
"lint:fix": "eslint --fix src/ --ext .ts" "lint:fix": "eslint --fix src/ --ext .ts"

Loading…
Cancel
Save