Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
John Whitlock 2d9f08baa5
Move options to jest config 2022-03-24 09:32:32 -05:00
John Whitlock 1c94ed82c4
Omit apiMocks from coverage
This improves coverage, allowing higher threshholds.
2022-03-24 09:31:54 -05:00
John Whitlock abc93150db
Set minimum frontend coverage
Round down to set coverage minimums:
* Statements: 40% (currently 47.92%)
* Branches: 40% (currently 49.16%)
* Functions: 30% (currently 33.33%)
* Lines: 40% (currently 47.98%)
2022-03-23 19:09:33 -05:00
John Whitlock 44ef1e01e8
Generate frontend coverage and send to coveralls
Adjust the frontend tests:
* Use --ci mode, failing on previous snapshots
* Use --coverage, to generate coverage reports, and place them in a temp
  directory
* Use the default reporter, so test results are shown in CI output

Add a convert_frontend_coverage step that uses `sed` to add `frontend/` to
the coverage file paths, and the Ruby tool `coveralls-lcov` to convert
to the coveralls JSON format.

Use the Python `coveralls` tool to merge the backend coverage data with
the frontend JSON coverage file and upload to coveralls.io
2022-03-23 19:09:25 -05:00
Vincent ca58634bbf Outsource Jest config to Next.js where possible
See
https://nextjs.org/blog/next-12-1#zero-configuration-jest-plugin

It doesn't yet seem to work with Next.js's own compiler, so we're
still using the next/babel transform.
2022-03-16 03:02:49 -07:00
Vincent 07162a86c6 Don't collect coverage for development-only pages 2022-03-16 03:02:49 -07:00
Vincent 1403803a23 Move frontend from /react-ui/ to /frontend/ 2022-03-16 03:02:49 -07:00