test: update import paths for RoomData and TestContext in various test files

This commit is contained in:
juancarmore 2025-12-31 00:12:48 +01:00
parent 744fd05724
commit 05980df465
12 changed files with 25 additions and 17 deletions

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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`;

View File

@ -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`;

View File

@ -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`;