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.


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


The sample is a good snippet to start.
Can you please explain what is the renderingId ?
Is it the environment?

Thank you,

Hi @Florian_Sureau :wave: welcome to our community.
The renderingId is the reference of a rendering based on environment + team.
You can find it inside your JWT token sends to your api.
If you decode this token you should have this information.
Let me know if that help.

1 Like

Thank you Arnaud, found it.

It would be good to indicate it in the documentation I think.


I will noticed the team of your feedback, thank you :smiley: