mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix: integration test failure (#3036)
This commit is contained in:
parent
14482934f6
commit
031a2c69de
2 changed files with 4 additions and 1 deletions
|
@ -2,13 +2,14 @@ import fs from 'fs/promises';
|
|||
import { createServer } from 'http';
|
||||
import path from 'path';
|
||||
|
||||
import { mockSmsVerificationCodeFileName } from '@logto/connector-kit';
|
||||
import type { User } from '@logto/schemas';
|
||||
import { RequestError } from 'got';
|
||||
|
||||
import { createUser } from '#src/api/index.js';
|
||||
import { generateUsername } from '#src/utils.js';
|
||||
|
||||
const temporaryVerificationCodeFilePath = path.join('/tmp', 'logto_mock_passcode_record.txt');
|
||||
const temporaryVerificationCodeFilePath = path.join('/tmp', mockSmsVerificationCodeFileName);
|
||||
|
||||
export const createUserByAdmin = (
|
||||
username?: string,
|
||||
|
|
|
@ -24,3 +24,5 @@ export const parseJson = (
|
|||
throw new ConnectorError(errorCode, errorPayload ?? jsonString);
|
||||
}
|
||||
};
|
||||
|
||||
export const mockSmsVerificationCodeFileName = 'logto_mock_verification_code_record.txt';
|
||||
|
|
Loading…
Reference in a new issue