* @return {Promise } A promise that resolves to the path.
()
| 26 | * @return {Promise<string>} A promise that resolves to the path. |
| 27 | */ |
| 28 | function mkdtemp() { |
| 29 | return new Promise((resolve, reject) => { |
| 30 | tmp.dir({unsafeCleanup: true}, (err, tmpPath) => { |
| 31 | if (err) { |
| 32 | return reject(err); |
| 33 | } |
| 34 | resolve(tmpPath); |
| 35 | }); |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Creates a git repo with the contents of a fixture. |
no outgoing calls
no test coverage detected
searching dependent graphs…