(directory: string)
| 46 | } |
| 47 | |
| 48 | function localAdapter(directory: string): WorkspaceAdapter { |
| 49 | return { |
| 50 | name: "Local Test", |
| 51 | description: "Create a local test workspace", |
| 52 | configure(info) { |
| 53 | return { |
| 54 | ...info, |
| 55 | name: "local-test", |
| 56 | directory, |
| 57 | } |
| 58 | }, |
| 59 | async create() { |
| 60 | await mkdir(directory, { recursive: true }) |
| 61 | }, |
| 62 | async remove() {}, |
| 63 | target() { |
| 64 | return { |
| 65 | type: "local" as const, |
| 66 | directory, |
| 67 | } |
| 68 | }, |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | function listedAdapter(directory: string, type: string): WorkspaceAdapter { |
| 73 | return { |
no outgoing calls
no test coverage detected