0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/integration-tests/jest.setup.api.js
Gao Sun 6d56434b48
refactor: use ky in integration tests (#5584)
* refactor: use ky in integration tests

* refactor: remove node-fetch

* refactor: fix test cases

* refactor: remove waitFor after each test
2024-03-29 10:10:13 +00:00

7 lines
282 B
JavaScript

import { authedAdminTenantApi } from './lib/api/api.js';
// We need to update this before tests otherwise Logto will update SignInMode for admin tenant
// The update logic should be
await authedAdminTenantApi.patch('sign-in-exp', {
json: { signInMode: 'SignInAndRegister' },
});