Challenge

Test mode

Read the Botpoison Challenge docs page "Test mode" at https://botpoison.com/documentation/challenge/test-mode.md
and use it to make this change in my project.
Use the stack this project already runs on, and ask me for my keys rather than inventing them.

Verify with the secret key test to try your integration without solving a challenge in a browser. The solution you send decides the result.

Forcing a result

The solution ok passes. Any other solution fails.

JavaScript
// The solution "ok" passes
const OK_REQUEST_DATA = { secretKey: "test", solution: "ok" }
const OK_RESPONSE = { ok: true, message: "Test key" }
// Any other solution fails
const NOT_OK_DATA = { secretKey: "test", solution: "nok" }
const NOT_OK_RESPONSE = { ok: false, message: "Test key" }

message is always Test key, so a test result cannot be mistaken for a real one in your logs.

What test calls skip

The test key belongs to no configuration. Test calls are not recorded, do not appear in the dashboard and never count toward your plan.

Switch to your configuration's secret key before you deploy. See Challenge keys.