Skip to content

Commit 346f968

Browse files
committed
chore: wip
1 parent 0b00a5c commit 346f968

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/launchpad/test/performance-optimizations.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,15 @@ describe('Performance Optimizations', () => {
222222
expect(generatedShellCode).toContain('>/dev/null 2>&1 &')
223223
expect(generatedShellCode).toContain('disown 2>/dev/null || true')
224224

225-
// Should not have expensive operations in the main path
226-
expect(generatedShellCode).not.toContain('find ')
227-
expect(generatedShellCode).not.toContain('ls -A')
225+
// Should have ultra-fast path that returns early
226+
expect(generatedShellCode).toContain('Ultra-fast path activation completed')
227+
expect(generatedShellCode).toContain('return 0')
228228

229229
// Should have instant activation logic
230230
expect(generatedShellCode).toContain('Instant activation - no external commands')
231+
232+
// Should use efficient caching mechanisms
233+
expect(generatedShellCode).toContain('persistent_cache_dir')
231234
})
232235

233236
it('should ensure cache variables are properly initialized', () => {

0 commit comments

Comments
 (0)