()
| 121 | if ($[1] !== store) { |
| 122 | t2 = () => { |
| 123 | const flush = () => { |
| 124 | const metrics = store.getAll(); |
| 125 | if (Object.keys(metrics).length > 0) { |
| 126 | saveCurrentProjectConfig(current => ({ |
| 127 | ...current, |
| 128 | lastSessionMetrics: metrics |
| 129 | })); |
| 130 | } |
| 131 | }; |
| 132 | process.on("exit", flush); |
| 133 | return () => { |
| 134 | process.off("exit", flush); |
nothing calls this directly
no test coverage detected