(config: GlobalConfig)
| 1039 | // the file's real mtime (Date.now() is recorded after the write) so the |
| 1040 | // freshness watcher skips re-reading our own write on its next tick. |
| 1041 | function writeThroughGlobalConfigCache(config: GlobalConfig): void { |
| 1042 | globalConfigCache = { config, mtime: Date.now() } |
| 1043 | lastReadFileStats = null |
| 1044 | } |
| 1045 | |
| 1046 | export function getGlobalConfig(): GlobalConfig { |
| 1047 | if (process.env.NODE_ENV === 'test') { |
no outgoing calls
no test coverage detected