Skip to content

Running tests locally: How to? #958

@mrsimpson

Description

@mrsimpson

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?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions