@@ -22,7 +22,7 @@ import { SdkFlag, SdkFlags } from '@temporalio/workflow/lib/flags';
2222import { ReusableVMWorkflow , ReusableVMWorkflowCreator } from '@temporalio/worker/lib/workflow/reusable-vm' ;
2323import { parseWorkflowCode } from '@temporalio/worker/lib/worker' ;
2424import * as activityFunctions from './activities' ;
25- import { cleanStackTrace , compareStackTraceIdentifiers , REUSE_V8_CONTEXT , u8 } from './helpers' ;
25+ import { cleanStackTrace , compareStackTrace , REUSE_V8_CONTEXT , u8 } from './helpers' ;
2626import { ProcessedSignal } from './workflows' ;
2727
2828export interface Context {
@@ -466,7 +466,7 @@ test('throwAsync', async (t) => {
466466 const req = cleanWorkflowFailureStackTrace ( await activate ( t , makeStartWorkflow ( workflowType ) ) ) ;
467467 const actualStackTrace = removeWorkflowFailureStackTrace ( req ) ;
468468 compareCompletion ( t , req , makeSuccess ( [ makeFailWorkflowExecution ( 'failure' ) ] ) ) ;
469- compareStackTraceIdentifiers (
469+ compareStackTrace (
470470 t ,
471471 actualStackTrace ,
472472 dedent `
@@ -782,7 +782,7 @@ test('interruptableWorkflow', async (t) => {
782782 [ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
783783 )
784784 ) ;
785- compareStackTraceIdentifiers (
785+ compareStackTrace (
786786 t ,
787787 stackTrace ,
788788 // The stack trace is weird here and might confuse users, it might be a JS limitation
@@ -813,7 +813,7 @@ test('failSignalWorkflow', async (t) => {
813813 [ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
814814 )
815815 ) ;
816- compareStackTraceIdentifiers (
816+ compareStackTrace (
817817 t ,
818818 stackTrace ,
819819 dedent `
@@ -853,7 +853,7 @@ test('asyncFailSignalWorkflow', async (t) => {
853853 [ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
854854 )
855855 ) ;
856- compareStackTraceIdentifiers (
856+ compareStackTrace (
857857 t ,
858858 stackTrace ,
859859 dedent `
@@ -1467,7 +1467,7 @@ test('cancellationErrorIsPropagated', async (t) => {
14671467 } ,
14681468 ] )
14691469 ) ;
1470- compareStackTraceIdentifiers (
1470+ compareStackTrace (
14711471 t ,
14721472 stackTrace ,
14731473 dedent `
@@ -1666,7 +1666,7 @@ test('resolve activity with failure - http', async (t) => {
16661666 ) ;
16671667 const stackTrace = removeWorkflowFailureStackTrace ( completion ) ;
16681668 compareCompletion ( t , completion , makeSuccess ( [ makeFailWorkflowExecution ( 'Connection timeout' , 'MockError' ) ] ) ) ;
1669- compareStackTraceIdentifiers ( t , stackTrace , 'ApplicationFailure: Connection timeout' ) ;
1669+ compareStackTrace ( t , stackTrace , 'ApplicationFailure: Connection timeout' ) ;
16701670 }
16711671} ) ;
16721672
@@ -1879,7 +1879,7 @@ test('tryToContinueAfterCompletion', async (t) => {
18791879 const completion = cleanWorkflowFailureStackTrace ( await activate ( t , makeStartWorkflow ( workflowType ) ) ) ;
18801880 const stackTrace = removeWorkflowFailureStackTrace ( completion ) ;
18811881 compareCompletion ( t , completion , makeSuccess ( [ makeFailWorkflowExecution ( 'fail before continue' ) ] ) ) ;
1882- compareStackTraceIdentifiers (
1882+ compareStackTrace (
18831883 t ,
18841884 stackTrace ,
18851885 dedent `
0 commit comments