Skip to content

Commit f04baa2

Browse files
committed
test: Fix broken setup
1 parent aa5d7be commit f04baa2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/build-fixture.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export const buildDirectory = async fixtureDir => {
5656
await rimraf(resolve(`${fixturePath}/.rts2_cache_es`));
5757
await rimraf(resolve(`${fixturePath}/.rts2_cache_umd`));
5858

59+
// Now that dirs have been cleared, reset the fixturePath back to the parent dir
60+
if (fixtureDir.endsWith('-with-cwd')) {
61+
fixturePath = resolve(FIXTURES_DIR, fixtureDir);
62+
}
5963
const script = await getBuildScript(fixturePath, DEFAULT_SCRIPT);
6064

6165
const prevDir = process.cwd();

0 commit comments

Comments
 (0)