Friedrich
Friedrich
CDCloudflare Developers
Created by Friedrich on 7/26/2024 in #workers-help
How to define the environment to be used for a worker vitest?
Lets say I have mulitple environments:
vars = {CMS_API_URL="https://api.systems", ATI_API_URL="https://import.test.io"}

[env.test]
vars = {CMS_API_URL="http://localhost:64000", ATI_API_URL="http://localhost:64000", PASS: "not_required"}
vars = {CMS_API_URL="https://api.systems", ATI_API_URL="https://import.test.io"}

[env.test]
vars = {CMS_API_URL="http://localhost:64000", ATI_API_URL="http://localhost:64000", PASS: "not_required"}
How to force vitest to use the env.test environment?
1 replies