mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: fix failed tests
This commit is contained in:
parent
85c873b3b1
commit
8a29943c4d
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
import { createRequire } from 'node:module';
|
||||
|
||||
import { authedAdminTenantApi } from './lib/api/api.js';
|
||||
|
||||
// A patch for the global require function - see https://github.com/evanw/esbuild/issues/1921
|
||||
// eslint-disable-next-line @silverhand/fp/no-mutation
|
||||
globalThis.require = createRequire(import.meta.url);
|
||||
|
||||
// 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', {
|
||||
|
|
Loading…
Reference in a new issue