You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/test/src/integration-tests-old.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -398,7 +398,7 @@ export function runIntegrationTests(codec?: PayloadCodec): void {
398
398
awaitt.throwsAsync(workflow.query('not found'),{
399
399
instanceOf: QueryNotRegisteredError,
400
400
message:
401
-
'Workflow did not register a handler for not found. Registered queries: [__stack_trace __enhanced_stack_trace isBlocked]',
401
+
'Workflow did not register a handler for not found. Registered queries: [__stack_trace __enhanced_stack_trace __temporal_workflow_metadata isBlocked]',
Copy file name to clipboardExpand all lines: packages/test/src/test-workflows.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1922,10 +1922,10 @@ test('query not found - successString', async (t) => {
1922
1922
queryId: 'qid',
1923
1923
failed: {
1924
1924
message:
1925
-
'Workflow did not register a handler for not-found. Registered queries: [__stack_trace __enhanced_stack_trace]',
1925
+
'Workflow did not register a handler for not-found. Registered queries: [__stack_trace __enhanced_stack_trace __temporal_workflow_metadata]',
1926
1926
source: 'TypeScriptSDK',
1927
1927
stackTrace:
1928
-
'ReferenceError: Workflow did not register a handler for not-found. Registered queries: [__stack_trace __enhanced_stack_trace]',
1928
+
'ReferenceError: Workflow did not register a handler for not-found. Registered queries: [__stack_trace __enhanced_stack_trace __temporal_workflow_metadata]',
@@ -1143,15 +1146,22 @@ export function defineQuery<Ret, Args extends any[] = [], Name extends string =
1143
1146
*
1144
1147
* @param def an {@link UpdateDefinition}, {@link SignalDefinition}, or {@link QueryDefinition} as returned by {@link defineUpdate}, {@link defineSignal}, or {@link defineQuery} respectively.
1145
1148
* @param handler a compatible handler function for the given definition or `undefined` to unset the handler.
1149
+
* @param options an optional `description` of the handler and an optional update `validator` function.
0 commit comments