Skip to content

Commit 3d737b2

Browse files
committed
test: remove the NativeSource tests' temp folders
1 parent 6e00729 commit 3d737b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/ios-project-service-native-source.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ import { FileSystem } from "../lib/common/file-system";
66
import { IOSProjectService } from "../lib/services/ios-project-service";
77

88
describe("iOSProjectService getRootGroup", () => {
9+
let root: string;
910
let projectDir: string;
1011
let sourcesDir: string;
1112
let cwd: string;
1213

1314
beforeEach(() => {
14-
const root = fs.mkdtempSync(path.join(os.tmpdir(), "native-source-"));
15+
root = fs.mkdtempSync(path.join(os.tmpdir(), "native-source-"));
1516
projectDir = path.join(root, "apps", "app");
1617
sourcesDir = path.join(root, "libs", "native");
1718
fs.mkdirSync(projectDir, { recursive: true });
@@ -23,6 +24,7 @@ describe("iOSProjectService getRootGroup", () => {
2324

2425
afterEach(() => {
2526
process.chdir(cwd);
27+
fs.rmSync(root, { recursive: true, force: true });
2628
});
2729

2830
const getFiles = async (rootPath: string): Promise<string[]> => {

0 commit comments

Comments
 (0)