@@ -223,8 +223,6 @@ describe('traceEventWalFormat', () => {
223223 baseName : 'trace' ,
224224 walExtension : '.jsonl' ,
225225 finalExtension : '.json' ,
226- shardPath : expect . any ( Function ) ,
227- finalPath : expect . any ( Function ) ,
228226 codec : {
229227 encode : expect . any ( Function ) ,
230228 decode : expect . any ( Function ) ,
@@ -249,36 +247,6 @@ describe('traceEventWalFormat', () => {
249247 expect ( format . finalExtension ) . toBe ( '.json' ) ;
250248 } ) ;
251249
252- it ( 'should generate correct shard paths' , ( ) => {
253- const format = traceEventWalFormat ( ) ;
254-
255- expect ( format . shardPath ( 'shard-1' ) ) . toBe ( 'trace.shard-1.jsonl' ) ;
256- expect ( format . shardPath ( 'process-123-thread-456' ) ) . toBe (
257- 'trace.process-123-thread-456.jsonl' ,
258- ) ;
259- } ) ;
260-
261- it ( 'should generate correct shard paths with groupId' , ( ) => {
262- const format = traceEventWalFormat ( { groupId : 'session-123' } ) ;
263-
264- expect ( format . shardPath ( 'shard-1' ) ) . toBe ( 'trace.session-123.shard-1.jsonl' ) ;
265- expect ( format . shardPath ( 'process-123-thread-456' ) ) . toBe (
266- 'trace.session-123.process-123-thread-456.jsonl' ,
267- ) ;
268- } ) ;
269-
270- it ( 'should generate correct final path' , ( ) => {
271- const format = traceEventWalFormat ( ) ;
272-
273- expect ( format . finalPath ( ) ) . toBe ( 'trace.json' ) ;
274- } ) ;
275-
276- it ( 'should generate correct final path with groupId' , ( ) => {
277- const format = traceEventWalFormat ( { groupId : 'session-123' } ) ;
278-
279- expect ( format . finalPath ( ) ) . toBe ( 'trace.session-123.json' ) ;
280- } ) ;
281-
282250 it ( 'should encode and decode trace events correctly' , ( ) => {
283251 const format = traceEventWalFormat ( ) ;
284252 const testEvent : UserTimingTraceEvent = {
0 commit comments