Files
r1oga f05391ac57 test:fix: use remote postgres db for tests and fix GH test workflow (#32)
* fix db unit tests

Use cloud postgres DB instead of sqlite

* refactor: parallelize async calls

* test: force resync in test scripts

To flush tables

* chore: remove use of `test.db`

* chore: newline

* fix: skip failing tests

* remove use of `getMockDB`

* skip process.exit

* do not create new db connection, use cached Sequelize instance

* fix:test: force exit at end of DbService tests

* run `npm run test` in GH test action

`npm run test:coverage` would always fail (we don't meet the coverage threshold)

* chore: use heroku postgres instance instead of elephantsql for testing

Heroku provides postgres 14.5.
elephantsql has only postgres 11.12

* fix db unit test

* remove unused (redeclared) `parse` function

Co-authored-by: tsukino <87639218+0xtsukino@users.noreply.github.com>
2022-11-04 02:38:40 +08:00
..
2022-03-02 23:56:03 -08:00