mirror of
https://github.com/strapi/strapi.git
synced 2025-07-14 20:41:51 +00:00

* 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
7 lines
184 B
JavaScript
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 },
|
|
});
|
|
}
|