fix: Changes to fix ee jest test (#22188)
Changes to fix the jest test failure on EE.
This commit is contained in:
parent
bdb9fe8d54
commit
df9c684db1
|
|
@ -17,6 +17,7 @@ export enum BatchKey {
|
|||
process_batched_triggers = "process_batched_triggers",
|
||||
process_batched_fn_execution = "process_batched_fn_execution",
|
||||
process_js_variable_updates = "process_js_variable_updates",
|
||||
process_batched_fn_invoke_log = "process_batched_fn_invoke_log",
|
||||
}
|
||||
|
||||
const TriggerEmitter = new EventEmitter();
|
||||
|
|
@ -146,4 +147,13 @@ TriggerEmitter.on(
|
|||
jsVariableUpdatesHandlerWrapper,
|
||||
);
|
||||
|
||||
export const fnInvokeLogHandler = priorityBatchedActionHandler((data) => {
|
||||
WorkerMessenger.ping({
|
||||
method: MAIN_THREAD_ACTION.LOG_JS_FUNCTION_EXECUTION,
|
||||
data,
|
||||
});
|
||||
});
|
||||
|
||||
TriggerEmitter.on(BatchKey.process_batched_fn_invoke_log, fnInvokeLogHandler);
|
||||
|
||||
export default TriggerEmitter;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user