strapi/cli-tests/scripts/rate-limit.js
Ben Irvin d5e752fe61
test: initialize CLI e2e testing framework
* chore: lint test scripts
* chore: clone playwright tests
* chore: clean up test runner
* feat: add jest test runner with concurrency
* chore: documentation
* chore: docs
* chore: fix prettier
* chore: lint
* chore: remove log
* chore: remove console.logs
* fix: ensure enough test apps are available
* chore: add log for yalc
* chore: fix logging
* chore: tests to todos
2024-01-08 11:23:26 +01:00

7 lines
184 B
JavaScript

export async function toggleRateLimiting(page, enabled = true) {
await page.request.fetch('/api/config/ratelimit/enable', {
method: 'POST',
data: { value: enabled },
});
}