Setting up a test environment

Hi there folks,
I’m currently wondering if anyone in the community is building a test suite for their Forest Admin BE - at the moment, I’m trying to implement integration tests for endpoints using supertest and wondering if there are any good patterns for ensuring that the test requests are authenticated on each request / general good setup of a test environment.

Context

Please provide any relevant information about your setup.

  • Package Version:
  • Express Version: “express”: “~4.16.3”,
  • Sequelize Version: “sequelize”: “~5.15.1”,
  • Database Dialect: “postgres”
    “Test tooling” : “jest” “^26.6.3”
  • Database Version: “postgres:12” ( docker image )
  • Project Name: Oak National Academy

We have a little Run automated tests - Woodshop who can help you to create your tests.
Let me know if that help.

1 Like