E2Es #118
Annotations
10 errors
e2e/js-config/js-config.e2e.ts > should execute:
internal/e2e/src/tenv.ts#L915
Error: Exit code 1
[2024-10-26T18:01:35.579Z] INFO Mesh Compose Found default config file e2e/js-config/mesh.config.js
(node:10207) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
[2024-10-26T18:01:35.583Z] ERROR e2e/js-config/mesh.config.js:1
import { defineConfig } from '@graphql-mesh/compose-cli';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async run (file://node_modules/@graphql-mesh/compose-cli/esm/run.js:51:32)
❯ ChildProcess.<anonymous> internal/e2e/src/tenv.ts:915:11
Module Error: Exit code 1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "Error: Exit code 1" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"Error: Exit code 1"
]
}
}
}
}
|
E2E / Node v20
Process completed with exit code 1.
|
e2e/opentelemetry/opentelemetry.e2e.ts > should report telemetry metrics correctly to jaeger:
e2e/opentelemetry/opentelemetry.e2e.ts#L154
AssertionError: expected 12 to be 11 // Object.is equality
- Expected
+ Received
- 11
+ 12
❯ e2e/opentelemetry/opentelemetry.e2e.ts:154:39
|
e2e/type-merging-batching/type-merging-batching.e2e.ts > should execute 'Authors':
e2e/type-merging-batching/type-merging-batching.e2e.ts#L94
Error: Snapshot `should execute 'Books' 3` mismatched
- Expected
+ Received
{
"data": {
- "book": {
- "author": {
+ "authors": [
+ {
+ "books": [
+ {
+ "author": {
- "books": [
+ "id": "0",
- {
+ "name": "John Doe",
+ },
"id": "1",
"title": "Dolor Sit Amet",
},
],
"id": "0",
"name": "John Doe",
},
- "id": "1",
+ {
+ "books": [
+ {
+ "author": {
+ "id": "1",
+ "name": "Jane Doe",
+ },
+ "id": "0",
- "title": "Dolor Sit Amet",
- },
+ "title": "Lorem Ipsum",
+ },
+ ],
+ "id": "1",
+ "name": "Jane Doe",
+ },
+ ],
},
}
❯ e2e/type-merging-batching/type-merging-batching.e2e.ts:94:3
|
e2e/type-merging-batching/type-merging-batching.e2e.ts > should execute 'Book':
e2e/type-merging-batching/type-merging-batching.e2e.ts#L94
Error: Snapshot `should execute 'Books' 4` mismatched
- Expected
+ Received
{
"data": {
- "books": [
- {
- "author": {
- "books": [
- {
- "id": "0",
- "title": "Lorem Ipsum",
- },
- ],
- "id": "1",
- "name": "Jane Doe",
- },
- "id": "0",
- "title": "Lorem Ipsum",
- },
- {
+ "book": {
- "author": {
+ "author": {
- "books": [
+ "books": [
- {
- "id": "1",
+ {
+ "id": "1",
- "title": "Dolor Sit Amet",
+ "title": "Dolor Sit Amet",
- },
+ },
- ],
+ ],
- "id": "0",
+ "id": "0",
- "name": "John Doe",
+ "name": "John Doe",
- },
+ },
- "id": "1",
+ "id": "1",
- "title": "Dolor Sit Amet",
+ "title": "Dolor Sit Amet",
- },
- ],
+ },
},
}
❯ e2e/type-merging-batching/type-merging-batching.e2e.ts:94:3
|
e2e/type-merging-batching/type-merging-batching.e2e.ts > should execute 'Books':
e2e/type-merging-batching/type-merging-batching.e2e.ts#L94
Error: Snapshot `should execute 'Books' 2` mismatched
- Expected
+ Received
{
"data": {
- "authors": [
+ "books": [
{
- "books": [
+ "author": {
- {
+ "books": [
- "author": {
+ {
"id": "0",
- "name": "John Doe",
+ "title": "Lorem Ipsum",
},
- "id": "1",
+ ],
+ "id": "1",
- "title": "Dolor Sit Amet",
+ "name": "Jane Doe",
- },
+ },
- ],
"id": "0",
- "name": "John Doe",
+ "title": "Lorem Ipsum",
},
{
- "books": [
+ "author": {
- {
- "author": {
+ "books": [
+ {
"id": "1",
- "name": "Jane Doe",
+ "title": "Dolor Sit Amet",
},
- "id": "0",
+ ],
+ "id": "0",
- "title": "Lorem Ipsum",
- },
- ],
+ "name": "John Doe",
+ },
"id": "1",
- "name": "Jane Doe",
+ "title": "Dolor Sit Amet",
},
],
},
}
❯ e2e/type-merging-batching/type-merging-batching.e2e.ts:94:3
|
E2E / Node v22
Process completed with exit code 1.
|
e2e/js-config/js-config.e2e.ts > should execute:
internal/e2e/src/tenv.ts#L915
Error: Exit code 1
[2024-10-26T18:01:49.463Z] INFO Mesh Compose Found default config file e2e/js-config/mesh.config.js
(node:9907) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
[2024-10-26T18:01:49.474Z] ERROR e2e/js-config/mesh.config.js:1
import { defineConfig } from '@graphql-mesh/compose-cli';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:76:18)
at wrapSafe (node:internal/modules/cjs/loader:1283:20)
at Module._compile (node:internal/modules/cjs/loader:1328:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:203:29)
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
at async run (file://node_modules/@graphql-mesh/compose-cli/esm/run.js:51:32)
❯ ChildProcess.<anonymous> internal/e2e/src/tenv.ts:915:11
Module Error: Exit code 1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "Error: Exit code 1" asking them to ship the file in .mjs extension or add "type": "module" in their package.json.
As a temporary workaround you can try to inline the package by updating your config:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"Error: Exit code 1"
]
}
}
}
}
|
e2e/opentelemetry/opentelemetry.e2e.ts > should report http failures:
e2e/opentelemetry/opentelemetry.e2e.ts#L318
AssertionError: expected 1 to be 2 // Object.is equality
- Expected
+ Received
- 2
+ 1
❯ e2e/opentelemetry/opentelemetry.e2e.ts:318:30
|
E2E / Node v18
Process completed with exit code 1.
|