Skip to content

Commit 747a05d

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent a2b7335 commit 747a05d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/@apphosting/common/src/index.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import assert from "assert";
22
import fs from "fs";
33
import path from "path";
44
import os from "os";
5-
const importIndex = import("@apphosting/common/dist/index.js");
5+
import { UpdateOrCreateGitignore } from "./index";
66

77
describe("update or create .gitignore", () => {
88
let tmpDir: string;
9-
beforeEach(() => {
10-
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "test-gitignore"));
11-
});
9+
afterEach(() => {
10+
fs.rmSync(tmpDir, { recursive: true, force: true });
11+
});
1212

1313
it(".gitignore file exists and is correctly updated with missing paths", async () => {
1414
const { updateOrCreateGitignore } = await importIndex;

packages/@apphosting/common/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { spawn } from "child_process";
2-
import * as path from "node:path";
3-
import * as fs from "fs-extra";
2+
import * as fs from "node:fs";
43

54
// Output bundle metadata specifications to be written to bundle.yaml
65
export interface OutputBundleConfig {

0 commit comments

Comments
 (0)