When running tests locally, there are a couple of issues which we encounter
- typeorm drop schema which runs pre_test fails => fix: Make sure the env is properly being set prior to executing the tests, typeorm itself does not feature DOTENV-support (
"typeorm": "export $(cat ../../.env | xargs) && ts-node ./node_modules/typeorm/cli.js")
- Some™️ api-tests fail due to unexpected HTTP-return-codes (particularly expected
403 are not met)
Is there something we need to configure locally in order to make the tests run?
When running tests locally, there are a couple of issues which we encounter
"typeorm": "export $(cat ../../.env | xargs) && ts-node ./node_modules/typeorm/cli.js")403are not met)Is there something we need to configure locally in order to make the tests run?