@@ -3,6 +3,7 @@ import assert from 'node:assert';
33import sinon from 'sinon' ;
44
55import type { ShellProcess } from '../../types/shell' ;
6+ import { SlackTracerId } from '../../utils/constants' ;
67import { mockProcess } from '../../utils/test' ;
78import { shell } from '../shell' ;
89import platform from './platform' ;
@@ -86,6 +87,12 @@ describe('platform commands', () => {
8687 sinon . match . string ,
8788 sinon . match . array . contains ( [ 'run' , '--cleanup' , '--hide-triggers' ] ) ,
8889 ) ;
90+ sandbox . assert . calledWith (
91+ waitForOutputSpy ,
92+ SlackTracerId . SLACK_TRACE_PLATFORM_RUN_START ,
93+ sinon . match . object ,
94+ sinon . match . object ,
95+ ) ;
8996 } ) ;
9097 it ( 'should invoke `run` without --hide-triggers if hideTriggers=false' , async ( ) => {
9198 await platform . runStart ( { appPath : '/some/path' , hideTriggers : false } ) ;
@@ -119,6 +126,12 @@ describe('platform commands', () => {
119126 sandbox . stub ( shell , 'kill' ) . resolves ( ) ;
120127 await platform . runStop ( { proc : fakeProcess , waitForShutdown : true } ) ;
121128 assert . ok ( true ) ;
129+ sandbox . assert . calledWith (
130+ waitForOutputSpy ,
131+ SlackTracerId . SLACK_TRACE_PLATFORM_RUN_STOP ,
132+ sinon . match . object ,
133+ sinon . match . object ,
134+ ) ;
122135 } ) ;
123136 } ) ;
124137} ) ;
0 commit comments