* Tear down the entirety of the fixture including the git origin and the lerna workspace under test.
()
| 153 | * Tear down the entirety of the fixture including the git origin and the lerna workspace under test. |
| 154 | */ |
| 155 | async destroy(): Promise<void> { |
| 156 | // Leave the fixtures untouched if in debug mode so that logs can be inspected etc |
| 157 | if (process.env.LERNA_E2E_DEBUG === "true") { |
| 158 | console.log(`NOTE: Skipping destruction of fixture ${this.name} due to LERNA_E2E_DEBUG=true`); |
| 159 | console.log(`You can review the fixture here: ${this.fixtureRootPath}`); |
| 160 | return; |
| 161 | } |
| 162 | await remove(this.fixtureRootPath); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Resolve the file path of a given file within the lerna workspace under test. |
no test coverage detected