An emission shaped like a real one, for the container-level tests.
(root: string, over: Partial<ExploreEmission> = {})
| 41 | |
| 42 | /** An emission shaped like a real one, for the container-level tests. */ |
| 43 | function emission(root: string, over: Partial<ExploreEmission> = {}): ExploreEmission { |
| 44 | return { |
| 45 | projectRoot: root, |
| 46 | query: 'q', |
| 47 | files: [{ path: 'a.ts', ranges: [{ start: 1, end: 10 }], bytes: 100 }], |
| 48 | sourceBytes: 100, |
| 49 | responseBytes: 400, |
| 50 | ...over, |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | describe('ExploreSessionState — the container', () => { |
| 55 | it('counts calls per project and hands back a 1-based session index', () => { |
no outgoing calls
no test coverage detected