Closed JustSamuel closed 5 months ago
Commit: a760f08 Base: develop@7382d62
Type | Base | This PR |
---|---|---|
Total Statements Coverage | ? | 90.09% (?) |
Total Branches Coverage | ? | 85.7% (?) |
Total Functions Coverage | ? | 91.22% (?) |
Total Lines Coverage | ? | 90.07% (?) |
File | Statements | Branches | Functions | Lines |
---|
:tada: This PR is included in version 0.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
The MySQL test suite now finally works. Some changes were needed such to never close a connection if we are in a MySQL context.
The original mistake originated from the test/setup.ts file where the env vars were overwritten and always resulted in a sqlite context.
This PR also includes multiple bug fixes found during this process.
Changes
To ensure future test cases also work make sure to use the following in your
before
And the following in your after
This also means to speed up the testing, refrain from making this a
beforeEach
.TODO
Fixes & Closes
CI: Adds post migration test suite. fix:
Invoice
migration, such that it follows the current schema synchronize. fix:product-revision.alcoholPercentage
had precision: 0. fix: bug in balance service that would crash mysql on empty ids array. fix:FineHandoutEvents
were not sorted by default fix:EventService
filtering onbeforeDate
was wrong fix:InvoiceService
latest valid invoice function was wrong fix: MySQL didn't store milliseconds for timestamps. fix: seed script for MySQL.Closes #82 Closes #83 Closes #88