chore: Import planx-core as ESM #7230
Triggered via pull request
December 24, 2024 16:55
Status
Failure
Total duration
19m 24s
Artifacts
–
pull-request.yml
on: pull_request
Check file changes
4s
Run Integration tests
3m 27s
Run API Tests
1m 15s
Run React Tests
3m 45s
Generate Hasura Change Summary
0s
E2E tests
4m 31s
Run Pulumi Preview
0s
Run Healthcheck on Pizza Services
0s
Annotations
25 errors and 1 warning
Run API Tests
Module '"/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/index"' has no default export.
|
Run API Tests
Property 'export' does not exist on type 'CoreDomainClient'.
|
Run API Tests
Module '"/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/index"' has no default export.
|
Run API Tests
Property 'getDocumentTemplateNamesForSession' does not exist on type 'CoreDomainClient'.
|
Run API Tests
Property 'export' does not exist on type 'CoreDomainClient'.
|
Run API Tests
Module '"/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/index"' has no default export.
|
Run API Tests
Property 'session' does not exist on type 'CoreDomainClient'.
|
Run API Tests
Module '"/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/index"' has no default export.
|
Run API Tests
Property 'session' does not exist on type 'CoreDomainClient'.
|
Run API Tests
Process completed with exit code 1.
|
Run Integration tests
Module '"/api/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/index"' has no default export.
|
Run Integration tests
Property 'export' does not exist on type 'CoreDomainClient'.
|
Run Integration tests
Module '"/api/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/index"' has no default export.
|
Run Integration tests
Property 'getDocumentTemplateNamesForSession' does not exist on type 'CoreDomainClient'.
|
Run Integration tests
Property 'export' does not exist on type 'CoreDomainClient'.
|
Run Integration tests
Module '"/api/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/index"' has no default export.
|
Run Integration tests
Property 'session' does not exist on type 'CoreDomainClient'.
|
Run Integration tests
Module '"/api/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/index"' has no default export.
|
Run Integration tests
Property 'session' does not exist on type 'CoreDomainClient'.
|
Run Integration tests
Module '"/api/node_modules/.pnpm/github.com+theopensystemslab+planx-core@f2f555b/node_modules/@opensystemslab/planx-core/dist/index"' has no default export.
|
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.
|
Upsert Vultr Instance
Process completed with exit code 1.
|
E2E tests
No files were found with the provided path: e2e/tests/ui-driven/test-results/. No artifacts will be uploaded.
|