Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: Add tests that check resulting fs in different modes #339

Merged
merged 20 commits into from
May 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove suppressing console.log output
wojtekn committed May 15, 2023
commit 12d9da3839a0164ccbaa78813a52b1a2dc12f15b
5 changes: 0 additions & 5 deletions packages/wp-now/src/tests/wp-now.spec.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ import startWPNow, {
} from '../wp-now';
import fs from 'fs-extra';
import path from 'path';
import jest from 'jest-mock';
import {
isPluginDirectory,
isThemeDirectory,
@@ -157,8 +156,6 @@ describe('Test starting different modes', () => {

/**
* Copy example directory to a temporary directory
*
* Also, silent the console.log() output.
*/
beforeEach(() => {
const tmpDirectory = os.tmpdir();
@@ -170,8 +167,6 @@ describe('Test starting different modes', () => {
);
fs.ensureDirSync(tmpExampleDirectory);
fs.copySync(exampleDir, tmpExampleDirectory);

jest.spyOn(console, 'log').mockImplementation(() => {});
});

/**