Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 28, 2024
1 parent 40c6971 commit e3a24f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1169,10 +1169,9 @@ Deno.test("subshells", async () => {
assertEquals(result, "1\n2\n5\n");
}
await withTempDir(async (tempDir) => {
tempDir = tempDir.resolve();
const subDir = tempDir.join("subDir");
subDir.mkdirSync();
const result = await $`(cd subDir && pwd) && pwd`.text();
const result = await $`(cd subDir && pwd) && pwd`.cwd(tempDir).text();
assertEquals(result, `${subDir}\n${tempDir}`);
});
});
Expand Down

0 comments on commit e3a24f5

Please sign in to comment.