import { CogniteWellsClient } from "src"; import { setupLoggedInIngestionClient } from "../../testUtils"; import { exampleWellSourceItems } from "../../fixtures/wellSourceFixtures"; import { exampleWellboreSourceItems } from "../../fixtures/wellboreSourceFixtures"; import { exampleTrajectoryIngestion } from "../../fixtures/trajectoryIngestionFixtures"; let client: CogniteWellsClient; beforeAll(async () => { client = await setupLoggedInIngestionClient(); }); test("ingest trajectory", async () => { expect(client).not.toBe(undefined); await client.wells.ingest(exampleWellSourceItems); await client.wellbores.ingest(exampleWellboreSourceItems); const trajectories = await client.trajectories.ingest([ exampleTrajectoryIngestion, ]); const actual = trajectories.items[0]; const expected = exampleTrajectoryIngestion; expect(actual.wellboreAssetExternalId).toBe(expected.wellboreAssetExternalId); expect(actual.source.sequenceExternalId).toBe( expected.source.sequenceExternalId ); expect(actual.phase).toBe(actual.phase); });