diff --git a/.gitignore b/.gitignore index cfb83d990..d352aee5f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ cov.lcov .idea _fresh/ backup.json -html_cov/ \ No newline at end of file +html_cov/ +coverage/ \ No newline at end of file diff --git a/deno.json b/deno.json index 3fc4989c0..88492837e 100644 --- a/deno.json +++ b/deno.json @@ -8,13 +8,11 @@ "db:migrate": "deno run --allow-read --allow-env --allow-net --unstable tasks/db_migrate.ts", "db:reset": "deno run --allow-read --allow-env --unstable tasks/db_reset.ts", "start": "deno run --unstable -A --watch=static/,routes/ --env dev.ts", - "test": "DENO_KV_PATH=:memory: GITHUB_CLIENT_ID=xxx GITHUB_CLIENT_SECRET=xxx deno test -A --unstable --parallel --coverage=./cov", + "test": "DENO_KV_PATH=:memory: GITHUB_CLIENT_ID=xxx GITHUB_CLIENT_SECRET=xxx deno test -A --unstable --parallel --coverage", "check:license": "deno run --allow-read --allow-write tasks/check_license.ts", "check:types": "deno check **/*.ts && deno check **/*.tsx", "ok": "deno fmt --check && deno lint && deno task check:license --check && deno task check:types && deno task test", - "cov:clean": "rm -rf cov html_cov cov.lcov", - "cov:gen": "deno coverage ./cov/ --lcov --exclude='.tsx' --output=cov.lcov", - "cov:view": "genhtml -o html_cov cov.lcov && open html_cov/index.html", + "cov:gen": "deno coverage coverage --lcov --exclude='.tsx' --output=cov.lcov", "update": "deno run -A -r https://fresh.deno.dev/update .", "build": "deno run -A --unstable dev.ts build", "preview": "deno run -A --unstable main.ts"