()
| 73 | mkdirSync(cliDir, { recursive: true }) |
| 74 | |
| 75 | const readCredentialsFile = (): CredentialsFileData => { |
| 76 | try { |
| 77 | return JSON.parse(readFileSync(credentialsFile).toString()) |
| 78 | } catch (err) { |
| 79 | if (err.code !== 'ENOENT') { throw err } |
| 80 | } |
| 81 | |
| 82 | return {} |
| 83 | } |
| 84 | |
| 85 | const clientId = clientIdProvider.clientId |
| 86 | const credentialsFileData = readCredentialsFile() |
no outgoing calls
no test coverage detected