Skip to content

chore: Import planx-core as ESM #7236

chore: Import planx-core as ESM

chore: Import planx-core as ESM #7236

Triggered via pull request January 2, 2025 10:03
Status Failure
Total duration 8m 51s
Artifacts

pull-request.yml

on: pull_request
Check file changes
4s
Check file changes
Build React App
3m 58s
Build React App
Run Integration tests
4m 51s
Run Integration tests
Run API Tests
1m 57s
Run API Tests
Run React Tests
3m 45s
Run React Tests
Generate Hasura Change Summary
0s
Generate Hasura Change Summary
E2E tests
4m 27s
E2E tests
Upsert Vultr Instance
4m 29s
Upsert Vultr Instance
Run Pulumi Preview
0s
Run Pulumi Preview
Run Healthcheck on Pizza Services
0s
Run Healthcheck on Pizza Services
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 11 warnings
modules/send/bops/bops.test.ts: api.planx.uk/client/index.ts#L1
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 ❯ client/index.ts:1:1 ❯ helpers.ts:4:31 Caused by: Caused by: TypeError: Module "file:///home/runner/work/planx-new/planx-new/api.planx.uk/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/export/digitalPlanning/schema/schema.json" needs an import assertion of type "json" ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' }
modules/send/email/index.test.ts: api.planx.uk/client/index.ts#L1
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 ❯ client/index.ts:1:1 ❯ helpers.ts:4:31 Caused by: TypeError: Module "file:///home/runner/work/planx-new/planx-new/api.planx.uk/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/export/digitalPlanning/schema/schema.json" needs an import assertion of type "json" ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' }
modules/webhooks/service/analyzeSessions/operations.test.ts: api.planx.uk/modules/webhooks/service/analyzeSessions/operations.ts#L2
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 ❯ modules/webhooks/service/analyzeSessions/operations.ts:2:31 ❯ modules/webhooks/service/analyzeSessions/operations.test.ts:19:25 Caused by: Caused by: TypeError: Module "file:///home/runner/work/planx-new/planx-new/api.planx.uk/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/export/digitalPlanning/schema/schema.json" needs an import assertion of type "json" ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' }
modules/webhooks/service/sanitiseApplicationData/operations.test.ts: api.planx.uk/client/index.ts#L1
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 ❯ client/index.ts:1:1 ❯ helpers.ts:4:31 Caused by: TypeError: Module "file:///home/runner/work/planx-new/planx-new/api.planx.uk/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/export/digitalPlanning/schema/schema.json" needs an import assertion of type "json" ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' }
Run API Tests
Process completed with exit code 1.
src/pages/FlowEditor/components/Sidebar/Search/index.test.tsx: editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/index.test.tsx#L15
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 ❯ src/pages/FlowEditor/components/Sidebar/Search/index.test.tsx:15:25 Caused by: Caused by: TypeError: Module "file:///home/runner/work/planx-new/planx-new/editor.planx.uk/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b_@types+react@18.2.45/node_modules/@opensystemslab/planx-core/dist/export/digitalPlanning/schema/schema.json" needs an import assertion of type "json" ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' }
Run React Tests
Process completed with exit code 1.
E2E tests
Type 'import("/home/runner/work/planx-new/planx-new/e2e/tests/api-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/node_modules/.pnpm/graphql-request@6.1.0_graphql@16.10.0/node_modules/graphql-request/build/esm/index").GraphQLClient' is not assignable to type 'import("/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/graphql-request@6.1.0_graphql@16.9.0/node_modules/graphql-request/build/esm/index").GraphQLClient'.
E2E tests
Process completed with exit code 1.
Run Integration tests
Process completed with exit code 1.
Upsert Vultr Instance
Process completed with exit code 1.
Run API Tests: api.planx.uk/lib/notify/index.ts#L73
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/analytics/metabase/shared/client.test.ts#L9
'axiosCreateSpy' is assigned a value but never used. Allowed unused vars must match /^_/u
Run API Tests: api.planx.uk/modules/auth/strategy/google.ts#L20
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/flows/validate/service/fileTypes.ts#L70
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/classifiedRoads.ts#L129
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/classifiedRoads.ts#L151
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/digitalLand.ts#L115
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/digitalLand.ts#L116
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/digitalLand.ts#L150
Unexpected any. Specify a different type
Run API Tests: api.planx.uk/modules/gis/service/digitalLand.ts#L199
Unexpected any. Specify a different type
E2E tests
No files were found with the provided path: e2e/tests/ui-driven/test-results/. No artifacts will be uploaded.