MCPcopy
hub / github.com/lerna/lerna / destroy

Method destroy

libs/e2e-utils/src/lib/fixture.ts:155–163  ·  view source on GitHub ↗

* Tear down the entirety of the fixture including the git origin and the lerna workspace under test.

()

Source from the content-addressed store, hash-verified

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.

Calls 2

removeFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected