import { CogniteWellsClient, WellSource } from "src"; import { exampleWellSourceItems } from "../../fixtures/wellSourceFixtures"; import { setupLoggedInIngestionClient } from "../../testUtils"; let client: CogniteWellsClient; beforeAll(async () => { client = await setupLoggedInIngestionClient(); }); test("ingest well", async () => { expect(client).not.toBe(undefined); const ingestionItems: WellSource[] = exampleWellSourceItems; const wells = await client.wells.ingest(ingestionItems); const actual = wells.items[0]; const expected = ingestionItems[0]; expect(actual.name).toBe(expected.name); expect(actual.waterDepth?.value).toBe(expected.waterDepth!.value); });