Skip to content

Commit af0b2ca

Browse files
Max updates Vitest Snapshot: Add code coverage report: Vitest supports Native code coverage via v8 and instrumented code coverage via istanbul (brisbanesocialchess#673)
* Add vitest package for coverage testing * handling test converage in vite config * add coverage script to package.json * ignore coverage dir * run pre-commit * fix order * fix eslint errors * Add exclude for coverage * move object dict * handling test mode and use another route root path in that case compared to build phase * run npm audit fix in packages/cfsite * adding coverage to package.json of the backend dir * setup initial ver of cloudflare mock test for vitest * update cloudflare mock * Delete cloudflare mock, use vitest in the root for _deploy frontend, and test vitest inside cfsite for the backend * Fix coverage in package of cfsie * Use istanbul engine for coverage test * run pre-commit to fix issues - ident * change order of dict in js * update package lock * use coverage v8 engine for frontend vite, remove line from gitignore, remove comment from vite config * change version * change private to true again - as we are not going to publish in a register * Update vite.config.js Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1e86796 commit af0b2ca

File tree

7 files changed

+779
-64
lines changed

7 files changed

+779
-64
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ public/
5353
.venv
5454

5555
frontend/assets/styles/base.css
56+
57+
# Vitest coverage
58+
coverage

0 commit comments

Comments
 (0)