(opts = {})
| 131 | } |
| 132 | |
| 133 | async upload(opts = {}) { |
| 134 | const projectPath = await this.projectPath(); |
| 135 | const endpoint = `/projects/${projectPath}/uploads`; |
| 136 | const { size, mime, data } = await fetchUploadData(opts); |
| 137 | const body = new FormData(); |
| 138 | body.append('file', data); |
| 139 | |
| 140 | const { url } = await this.request({ endpoint, method: 'POST', body }); |
| 141 | |
| 142 | return { uri: url, mime, size }; |
| 143 | } |
| 144 | |
| 145 | async runnerToken(body) { |
| 146 | const projectPath = await this.projectPath(); |
no test coverage detected