-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wp-now: Add tests that check resulting fs in different modes (#339)
* Add tests that check resulting fs in different modes * Remove debug code * Silent console.log() entries * Format new tests using prettier * Add mu-plugin to list of files checked by test * Add tests for "wordpress" mode * Fix formatting * Prefix temp directory to clarify where dirs come from * Fix incorrect directory comparison, make logic more clear * Format code * Test plugin and theme modes * Remove suppressing console.log output * Format code * Assert that wp-config.php is not created in index, plugin and theme modes * Add wrapper for console and disable it for test env * Format new file according to prettier * Increase test timeout * Set timeout in proper config file * Remove jest file that is not used
- Loading branch information
Showing
10 changed files
with
201 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,5 @@ | ||
function shouldOutput() { | ||
return process.env.NODE_ENV !== 'test'; | ||
} | ||
|
||
export const output = shouldOutput() ? console : null; |
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
Empty file.
Empty file.
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