chore: Import planx-core as ESM #7241
Annotations
10 errors and 11 warnings
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/create-flow.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts:6:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/login.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/pay.spec.ts:5:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/refresh-page.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/save-and-return.spec.ts:4:16)
|
Error: require() of ES Module /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/node_modules/.pnpm/github.com+theopensystemslab+planx-core@a7ec46d/node_modules/@opensystemslab/planx-core/dist/index.js from /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts not supported.
Instead change the require of index.js in /home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts to a dynamic import() which is available in all CommonJS modules.
at helpers/context.ts:13
11 | lastName: "Test",
12 | email: "simulate-delivered@notifications.service.gov.uk",
> 13 | isPlatformAdmin: true,
| ^
14 | },
15 | team: {
16 | name: "E2E Test Team",
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/helpers/context.ts:13:18)
at Object.<anonymous> (/home/runner/work/planx-new/planx-new/e2e/tests/ui-driven/src/sections.spec.ts:9:16)
|
|
|
e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts#L97
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L98
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L106
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L140
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts#L97
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L98
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L106
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L140
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts#L97
Unexpected use of networkidle
|
e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts#L98
Unexpected use of networkidle
|
This job failed
Loading