Skip to content

feat(api, shared-data): Expand Labware architecture to accommodate Lids #13319

feat(api, shared-data): Expand Labware architecture to accommodate Lids

feat(api, shared-data): Expand Labware architecture to accommodate Lids #13319

Triggered via pull request December 24, 2024 21:10
Status Failure
Total duration 3m 52s
Artifacts

step-generation-test.yaml

on: pull_request
step generation unit tests
3m 41s
step generation unit tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors
step-generation/src/__tests__/utils.test.ts: step-generation/src/__tests__/utils.test.ts#L10
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock ❯ step-generation/src/__tests__/utils.test.ts:10:25 Caused by: Caused by: Error: Failed to resolve import "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json" from "shared-data/js/labware.ts". Does the file exist? Plugin: vite:import-analysis File: /home/runner/work/opentrons/opentrons/shared-data/js/labware.ts:115:54 111| import opentronsFlexDeckRiserV1Uncasted from "../labware/definitions/2/opentrons_flex_deck_riser/1.json"; 112| import opentronsFlexLidAbsorbancePlateReaderModuleV1Uncasted from "../labware/definitions/2/opentrons_flex_lid_absorbance_plate_reader_module/1.json"; 113| import opentronsToughPcrAutoSealingLidV1Uncasted from "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json"; | ^ 114| import opentronsUniversalFlatAdapterV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter/1.json"; 115| import opentronsUniversalFlatAdapterCorning384Wellplate112UlFlatV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json"; ❯ formatError node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50824:46 ❯ TransformContext.error node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50818:19 ❯ normalizeUrl node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66141:33 ❯ node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66296:47 ❯ TransformContext.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66217:13 ❯ Object.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:51133:30 ❯ loadAndTransform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:53888:29 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:import-analysis', id: '/home/runner/work/opentrons/opentrons/shared-data/js/labware.ts', loc: { file: '/home/runner/work/opentrons/opentrons/shared-data/js/labware.ts', line: 115, column: 54 }, frame: '111| import opentronsFlexDeckRiserV1Uncasted from "../labware/definitions/2/opentrons_flex_deck_riser/1.json";\n112| import opentronsFlexLidAbsorbancePlateReaderModuleV1Uncasted from "../labware/definitions/2/opentrons_flex_lid_absorbance_plate_reader_module/1.json";\n113| import opentronsToughPcrAutoSealingLidV1Uncasted from "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json";\n | ^\n114| import opentronsUniversalFlatAdapterV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter/1.json";\n115| import opentronsUniversalFlatAdapterCorning384Wellplate112UlFlatV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json";' } }
step generation unit tests
Process completed with exit code 2.