Skip to content

Commit

Permalink
Skip tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 1, 2020
1 parent 278c5ff commit 0b70094
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cli/samples/stdin/config-file/_config.js
@@ -1,5 +1,6 @@
module.exports = {
description:
'does not replace input with stdin but allows referencing it when using a config file',
skipIfWindows: true,
command: `echo "import {PRINT as p} from './a'; import C from './b'; 0 && fail() || p(C); export {C as value, p as print}" | rollup -c`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/force-stdin-config-file/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'allows forcing inputs to be replaced with stdin in config files',
skipIfWindows: true,
command: `echo "console.log('STDIN');" | rollup -c --stdin`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/force-stdin-tty/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'allows forcing stdin input on TTY interfaces via option',
skipIfWindows: true,
command: `echo "console.log('PASS');" | ./wrapper.js -f es --stdin`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/no-dash/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'uses stdin input when piping into Rollup without an input',
skipIfWindows: true,
command: `echo "0 && fail() || console.log('PASS');" | rollup`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/no-stdin-config-file/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'allows using "-" as a regular file name via flag',
skipIfWindows: true,
command: `echo "console.log('IGNORED');" | rollup -c --no-stdin`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/no-stdin-tty/_config.js
Expand Up @@ -2,6 +2,7 @@ const { assertStderrIncludes } = require('../../../../utils.js');

module.exports = {
description: 'does not use input as stdin on TTY interfaces',
skipIfWindows: true,
command: `echo "console.log('PASS');" | ./wrapper.js -f es`,
error(err) {
assertStderrIncludes(err.message, 'You must supply options.input to rollup');
Expand Down
1 change: 1 addition & 0 deletions test/cli/samples/stdin/self-import/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'stdin input of code that imports a copy of itself',
skipIfWindows: true,
command: `shx mkdir -p _actual && shx cat input.txt | rollup -f cjs --silent`
};
1 change: 1 addition & 0 deletions test/cli/samples/stdin/stdin-error/_config.js
Expand Up @@ -2,6 +2,7 @@ const { assertStderrIncludes } = require('../../../../utils.js');

module.exports = {
description: 'handles stdin errors',
skipIfWindows: true,
command: `./wrapper.js`,
error(err) {
assertStderrIncludes(err.message, 'Could not load -: Stream is broken.');
Expand Down
1 change: 1 addition & 0 deletions test/cli/samples/stdin/with-dash/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'stdin input with dash on CLI',
skipIfWindows: true,
command: `echo "0 && fail() || console.log('PASS');" | rollup -`
};

0 comments on commit 0b70094

Please sign in to comment.