// Wipe otp_requests rows + customer row for TEST_PHONE so repeated runs
// don't trip the 60s cooldown or hit IDENTITY_CONFLICT.
const phone = TEST_PHONE
const url = BACKEND_INTERNAL_URL || 'http://localhost:3001'
const resp = http.post(`${url}/internal/_test/reset-phone`, {
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ phone, drop_customer: true }),
})
if (resp.status !== 200) {
  throw new Error(`reset-phone failed (${resp.status}): ${resp.body}`)
}
