test: update import paths for RoomData and TestContext in various test files
This commit is contained in:
parent
744fd05724
commit
05980df465
@ -10,7 +10,8 @@ import {
|
||||
getRoom,
|
||||
startTestServer
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Meetings API Tests', () => {
|
||||
let livekitService: LiveKitService;
|
||||
|
||||
@ -9,7 +9,8 @@ import {
|
||||
kickParticipant,
|
||||
startTestServer
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
const participantIdentity = 'TEST_PARTICIPANT';
|
||||
|
||||
|
||||
@ -13,7 +13,8 @@ import {
|
||||
updateParticipant,
|
||||
updateParticipantMetadata
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
const participantIdentity = 'TEST_PARTICIPANT';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
||||
import { errorRecordingNotFound } from '../../../../src/models/error.model.js';
|
||||
import { MeetRecordingStatus, MeetRoom } from '@openvidu-meet/typings';
|
||||
import { errorRecordingNotFound } from '../../../../src/models/error.model.js';
|
||||
import { expectValidationError, expectValidGetRecordingResponse } from '../../../helpers/assertion-helpers.js';
|
||||
import {
|
||||
deleteAllRecordings,
|
||||
@ -10,7 +10,8 @@ import {
|
||||
startTestServer,
|
||||
stopAllRecordings
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { setupMultiRecordingsTestContext, TestContext } from '../../../helpers/test-scenarios.js';
|
||||
import { setupMultiRecordingsTestContext } from '../../../helpers/test-scenarios.js';
|
||||
import { TestContext } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Recording API Tests', () => {
|
||||
let context: TestContext | null = null;
|
||||
|
||||
@ -23,11 +23,8 @@ import {
|
||||
stopAllRecordings,
|
||||
stopRecording
|
||||
} from '../../../helpers/request-helpers';
|
||||
import {
|
||||
setupMultiRecordingsTestContext,
|
||||
setupMultiRoomTestContext,
|
||||
TestContext
|
||||
} from '../../../helpers/test-scenarios';
|
||||
import { setupMultiRecordingsTestContext, setupMultiRoomTestContext } from '../../../helpers/test-scenarios';
|
||||
import { TestContext } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Recording API Race Conditions Tests', () => {
|
||||
let context: TestContext | null = null;
|
||||
|
||||
@ -19,7 +19,8 @@ import {
|
||||
stopAllRecordings,
|
||||
stopRecording
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { setupMultiRoomTestContext, TestContext } from '../../../helpers/test-scenarios.js';
|
||||
import { setupMultiRoomTestContext } from '../../../helpers/test-scenarios.js';
|
||||
import { TestContext } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Recording API Tests', () => {
|
||||
let context: TestContext | null = null;
|
||||
|
||||
@ -10,7 +10,8 @@ import {
|
||||
stopAllRecordings,
|
||||
stopRecording
|
||||
} from '../../../helpers/request-helpers';
|
||||
import { setupMultiRoomTestContext, TestContext } from '../../../helpers/test-scenarios';
|
||||
import { setupMultiRoomTestContext } from '../../../helpers/test-scenarios';
|
||||
import { TestContext } from '../../../interfaces/scenarios';
|
||||
|
||||
describe('Recording API Tests', () => {
|
||||
let context: TestContext | null = null;
|
||||
|
||||
@ -15,7 +15,8 @@ import {
|
||||
updateRecordingAccessConfigInRoom,
|
||||
updateRoomStatus
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Room API Tests', () => {
|
||||
let roomData: RoomData;
|
||||
|
||||
@ -10,7 +10,8 @@ import {
|
||||
getRoomMemberRoles,
|
||||
startTestServer
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
describe('Room API Tests', () => {
|
||||
let roomData: RoomData;
|
||||
|
||||
@ -12,7 +12,8 @@ import {
|
||||
startTestServer,
|
||||
updateParticipantMetadata
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
const MEETINGS_PATH = `${INTERNAL_CONFIG.INTERNAL_API_BASE_PATH_V1}/meetings`;
|
||||
|
||||
|
||||
@ -18,7 +18,8 @@ import {
|
||||
stopRecording,
|
||||
updateRecordingAccessConfigInRoom
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom, setupSingleRoomWithRecording } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom, setupSingleRoomWithRecording } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
const RECORDINGS_PATH = `${INTERNAL_CONFIG.API_BASE_PATH_V1}/recordings`;
|
||||
const INTERNAL_RECORDINGS_PATH = `${INTERNAL_CONFIG.INTERNAL_API_BASE_PATH_V1}/recordings`;
|
||||
|
||||
@ -12,7 +12,8 @@ import {
|
||||
sleep,
|
||||
startTestServer
|
||||
} from '../../../helpers/request-helpers.js';
|
||||
import { RoomData, setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { setupSingleRoom } from '../../../helpers/test-scenarios.js';
|
||||
import { RoomData } from '../../../interfaces/scenarios.js';
|
||||
|
||||
const ROOMS_PATH = `${INTERNAL_CONFIG.API_BASE_PATH_V1}/rooms`;
|
||||
const INTERNAL_ROOMS_PATH = `${INTERNAL_CONFIG.INTERNAL_API_BASE_PATH_V1}/rooms`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user