From 38ef68e27f565b4183b98d5e080076870f99ac65 Mon Sep 17 00:00:00 2001 From: Gabriel Bernal Date: Fri, 11 Mar 2022 15:56:26 +0100 Subject: [PATCH] fix: test commands should run only project related tests (#10440) Signed-off-by: Gabriel Bernal --- web/ui/module/codemirror-promql/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ui/module/codemirror-promql/package.json b/web/ui/module/codemirror-promql/package.json index a9496a21a..20f8ef472 100644 --- a/web/ui/module/codemirror-promql/package.json +++ b/web/ui/module/codemirror-promql/package.json @@ -8,8 +8,8 @@ "build": "npm run build:grammar && npm run build:lib", "build:grammar": "npx lezer-generator src/grammar/promql.grammar -o src/grammar/parser", "build:lib": "bash ./build.sh", - "test": "npm run build:grammar && ts-mocha -p tsconfig.json ./**/*.test.ts", - "test:coverage": "npm run build:grammar && nyc 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 src/**/*.test.ts", "codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "lint": "eslint src/ --ext .ts", "lint:fix": "eslint --fix src/ --ext .ts"