We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f258d3a commit 21f8034Copy full SHA for 21f8034
1 file changed
CodeEditTests/Utils/withTempDir.swift
@@ -30,12 +30,7 @@ func withTempDir(_ test: (URL) throws -> Void) throws {
30
}
31
32
private func createAndClearDir() throws -> URL {
33
- let tempDirURL = try FileManager.default.url(
34
- for: .developerApplicationDirectory,
35
- in: .userDomainMask,
36
- appropriateFor: nil,
37
- create: true
38
- )
+ let tempDirURL = FileManager.default.temporaryDirectory
39
.appending(path: "CodeEditTestDirectory", directoryHint: .isDirectory)
40
41
// If it exists, delete it before the test
0 commit comments