File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
packages/@apphosting/common/src Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import assert from "assert";
22import fs from "fs" ;
33import path from "path" ;
44import os from "os" ;
5- const importIndex = import ( "@apphosting/common/dist/ index.js" ) ;
5+ import { UpdateOrCreateGitignore } from "./ index" ;
66
77describe ( "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 ;
Original file line number Diff line number Diff line change 11import { 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
65export interface OutputBundleConfig {
You can’t perform that action at this time.
0 commit comments