Skip to content

Commit 272f8f3

Browse files
committed
Mute PhantomJS related logs
1 parent 5638df3 commit 272f8f3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/integration.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ import cssnano from 'cssnano';
66
import mixins from 'postcss-mixins';
77
import simpleVars from 'postcss-simple-vars';
88
import atImport from 'postcss-import';
9+
import {stub} from 'sinon';
910
import {run, watch, waitForRunComplete} from './helpers/karma';
1011
import {tmp} from './helpers/utils';
1112

13+
let stubWrite;
14+
15+
test.before(() => {
16+
stubWrite = stub(process.stdout, 'write');
17+
});
18+
19+
test.after(() => {
20+
stubWrite.restore();
21+
});
22+
1223
test('Compile css file', async t => {
1324
const {success, error, disconnected} = await run(['test/fixtures/basic.css', 'test/fixtures/styles.test.js'], {
1425
options: {plugins: [atImport, mixins, simpleVars, cssnano]},

0 commit comments

Comments
 (0)