Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Feb 18, 2020
1 parent b72231a commit 1ec5f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/cli/samples/stdin/stdin-error/_config.js
Expand Up @@ -2,8 +2,7 @@ const { assertStderrIncludes } = require('../../../../utils.js');

module.exports = {
description: 'handles stdin errors',
skipIfWindows: true,
command: `./wrapper.js`,
command: `node wrapper.js`,
error(err) {
assertStderrIncludes(err.message, 'Could not load -: Stream is broken.');
}
Expand Down
4 changes: 2 additions & 2 deletions test/cli/samples/stdout-code-splitting/_config.js
Expand Up @@ -5,8 +5,8 @@ const STANDARD = '\u001b[22m\u001b[39m';

module.exports = {
description: 'bundles multiple files to stdout while adding file names',
command: 'rollup -i main1.js -i main2.js -f es',
env: { FORCE_COLOR: '1' },
command: 'node wrapper.js -i main1.js -i main2.js -f es',
env: { FORCE_COLOR: '1', TERM: 'xterm' },
result(code) {
assert.equal(
code,
Expand Down
4 changes: 4 additions & 0 deletions test/cli/samples/stdout-code-splitting/wrapper.js
@@ -0,0 +1,4 @@
#!/usr/bin/env node

process.stdout.isTTY = true;
require('../../../../dist/bin/rollup');

0 comments on commit 1ec5f8e

Please sign in to comment.