Allow Trace
to accept a Future
as its data source
#209
Annotations
11 errors and 1 warning
tests/Future.test.ts > Future > Trace (Directive) > when target is a Node > .toJSON:
tests/Future.test.ts#L91
AssertionError: expected { type: 'trace', …(3) } to deeply equal { type: 'trace', …(2) }
- Expected
+ Received
Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "a",
},
Object {
"accessor": "item",
"future_id": null,
"key": 1,
},
Object {
"accessor": "attr",
"future_id": "123",
"key": null,
},
Object {
"accessor": "item",
"future_id": "456",
"key": null,
},
],
+ "origin_future_id": null,
"origin_node_id": "NodeId",
"type": "trace",
}
❯ tests/Future.test.ts:91:28
|
tests/Node.test.ts > Node > .references:
tests/Node.test.ts#L46
AssertionError: expected Set{ FutureAnyObject{ …(2) }, …(5) } to deeply equal Set{ FutureAnyObject{ …(2) }, …(2) }
- Expected
+ Received
Set {
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
- "origin_future_id": "future5_tfvoprtZ",
+ "origin_future_id": "future9_6EVq9-zH",
"origin_node_id": null,
"type": "trace",
},
- "id": "future6_FANYHJZI",
+ "id": "future10_IOnEOvqQ",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "b",
+ "type": "trace",
+ },
+ "id": "future9_6EVq9-zH",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "y",
+ "key": "x",
},
],
- "origin_future_id": "future7_4FB07jna",
+ "origin_future_id": "future5_tfvoprtZ",
"origin_node_id": null,
"type": "trace",
},
- "id": "future8_NsMqVpEv",
+ "id": "future6_FANYHJZI",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future5_tfvoprtZ",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "x",
+ "key": "y",
},
],
- "origin_future_id": "future9_6EVq9-zH",
+ "origin_future_id": "future7_4FB07jna",
"origin_node_id": null,
"type": "trace",
},
- "id": "future10_IOnEOvqQ",
+ "id": "future8_NsMqVpEv",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future7_4FB07jna",
},
}
❯ tests/Node.test.ts:46:21
|
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures:
tests/Substrate.test.ts#L19
AssertionError: expected { …(4) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future1_obkVM8W1",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "a",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future3__UdRwyQu",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "a",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "b",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:19:22
|
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures, but we only supply the 'final' node:
tests/Substrate.test.ts#L87
AssertionError: expected { nodes: [ { …(4) }, { …(4) } ], …(3) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future4_zwsK9a5x",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "node1_cNMV6aG2",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future6_MN8iBVgT",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "node2_PoishfxR",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "node1_cNMV6aG2",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:87:22
|
build (18.17.1)
Process completed with exit code 2.
|
build (16.18.1)
The job was canceled because "_18_17_1" failed.
|
tests/Future.test.ts > Future > Trace (Directive) > when target is a Node > .toJSON:
tests/Future.test.ts#L91
AssertionError: expected { type: 'trace', …(3) } to deeply equal { type: 'trace', …(2) }
- Expected
+ Received
Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "a",
},
Object {
"accessor": "item",
"future_id": null,
"key": 1,
},
Object {
"accessor": "attr",
"future_id": "123",
"key": null,
},
Object {
"accessor": "item",
"future_id": "456",
"key": null,
},
],
+ "origin_future_id": null,
"origin_node_id": "NodeId",
"type": "trace",
}
❯ tests/Future.test.ts:91:28
|
tests/Node.test.ts > Node > .references:
tests/Node.test.ts#L46
AssertionError: expected Set{ FutureAnyObject{ …(2) }, …(5) } to deeply equal Set{ FutureAnyObject{ …(2) }, …(2) }
- Expected
+ Received
Set {
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
- "origin_future_id": "future5__f2L3cz1",
+ "origin_future_id": "future9_YCRRTvxY",
"origin_node_id": null,
"type": "trace",
},
- "id": "future6_tV7QH7vW",
+ "id": "future10_9WsetOj0",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "b",
+ "type": "trace",
+ },
+ "id": "future9_YCRRTvxY",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "y",
+ "key": "x",
},
],
- "origin_future_id": "future7_WPgVMc6S",
+ "origin_future_id": "future5__f2L3cz1",
"origin_node_id": null,
"type": "trace",
},
- "id": "future8_X3VnIX_2",
+ "id": "future6_tV7QH7vW",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future5__f2L3cz1",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "x",
+ "key": "y",
},
],
- "origin_future_id": "future9_YCRRTvxY",
+ "origin_future_id": "future7_WPgVMc6S",
"origin_node_id": null,
"type": "trace",
},
- "id": "future10_9WsetOj0",
+ "id": "future8_X3VnIX_2",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future7_WPgVMc6S",
},
}
❯ tests/Node.test.ts:46:21
|
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures:
tests/Substrate.test.ts#L19
AssertionError: expected { …(4) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future1_vH9NvuxA",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "a",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future3_1VVmJO0e",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "a",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "b",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:19:22
|
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures, but we only supply the 'final' node:
tests/Substrate.test.ts#L87
AssertionError: expected { nodes: [ { …(4) }, { …(4) } ], …(3) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future4_xkDk0IWG",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "node1_ZlpXaOlB",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future6_UtJgFMJQ",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "node2_lFePGNgU",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "node1_ZlpXaOlB",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:87:22
|
build (16.18.1)
The operation was canceled.
|
build (18.17.1)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|