diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 40469de..3d6d571 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -12,6 +12,8 @@ jobs: run: yarn install - name: Test and Coverage run: yarn coverage + - name: Move Coverage File + run: cp coverage/coverage-final.json coverage/coverage-summary.json - name: Update Coverage Badge # GitHub actions: default branch variable # https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable diff --git a/.gitignore b/.gitignore index bb29695..d87fd0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ dist node_modules -yarn.lock \ No newline at end of file +yarn.lock +coverage \ No newline at end of file diff --git a/package.json b/package.json index 72f5df7..7af3e37 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "scripts": { "build": "tsc", "test": "vitest", + "test-ui": "vitest --ui --coverage.enabled=true", "start": "node dist/app.js", "dev": "tsc-watch --onSuccess 'node dist/app.js'", "lint": "eslint . --ext .ts", @@ -23,6 +24,7 @@ "devDependencies": { "@types/ngeohash": "0.6.8", "@vitest/coverage-v8": "1.0.4", + "@vitest/ui": "1.0.4", "vite-tsconfig-paths": "4.2.2", "vitest": "1.0.4" }