-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a tmp directory for WP-CLI tests
- Loading branch information
1 parent
a241c2d
commit 5e8e97c
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import path from 'path'; | ||
import os from 'os'; | ||
|
||
/** | ||
* The full path to the hidden WP-CLI folder in the user's tmp directory. | ||
*/ | ||
export default function getWpCliTmpPath() { | ||
const tmpDirectory = os.tmpdir(); | ||
|
||
return path.join(tmpDirectory, `wp-now-tests-wp-cli-hidden-folder`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters