Skip to content

Commit

Permalink
ah i had another case of touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Observable User committed Nov 2, 2024
1 parent 3f0bbb8 commit fede926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/deploy-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,9 @@ describe("deploy", () => {
"bi" // Which app do you want to use?
);

await (await open("readme.md", "a")).close();
await promisify(exec)(
"touch readme.md; git add .; git commit -m 'initial'; git remote add origin https://github.com/observablehq/test.git"
"git add . && git commit -m 'initial' && git remote add origin https://github.com/observablehq/test.git"
);

await deploy(TEST_OPTIONS, effects);
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {mkdtemp, rm} from "fs/promises";
import {tmpdir} from "os";
import {join} from "path/posix";
import {promisify} from "util";
import {rimraf} from "rimraf";
// import {rimraf} from "rimraf";

export function mockIsolatedDirectory({git}: {git: boolean}) {
let dir: string;
Expand Down

0 comments on commit fede926

Please sign in to comment.