restructure testing infrastructure to be more modular
This commit is contained in:
4
test/core/fixtures/bin/babel-node/--eval/options.json
Normal file
4
test/core/fixtures/bin/babel-node/--eval/options.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--eval", "console.log([1, 2, 3].map(x => x * x));"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
console.log([1, 2, 3].map(x => x * x));
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["foo", "--extensions", ".bar"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
4
test/core/fixtures/bin/babel-node/--print/options.json
Normal file
4
test/core/fixtures/bin/babel-node/--print/options.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"args": ["--print", "--eval", "([1, 2, 3].map(x => x * x))"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
3
test/core/fixtures/bin/babel-node/directory/options.json
Normal file
3
test/core/fixtures/bin/babel-node/directory/options.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["foo"]
|
||||
}
|
||||
1
test/core/fixtures/bin/babel-node/directory/stdout.txt
Normal file
1
test/core/fixtures/bin/babel-node/directory/stdout.txt
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
@@ -0,0 +1,2 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
3
test/core/fixtures/bin/babel-node/filename/options.json
Normal file
3
test/core/fixtures/bin/babel-node/filename/options.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["bar"]
|
||||
}
|
||||
1
test/core/fixtures/bin/babel-node/filename/stdout.txt
Normal file
1
test/core/fixtures/bin/babel-node/filename/stdout.txt
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
@@ -0,0 +1,2 @@
|
||||
var bar = () => console.log("bar");
|
||||
bar();
|
||||
@@ -0,0 +1,4 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
|
||||
import "./bar2";
|
||||
3
test/core/fixtures/bin/babel-node/require/options.json
Normal file
3
test/core/fixtures/bin/babel-node/require/options.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["foo2"]
|
||||
}
|
||||
2
test/core/fixtures/bin/babel-node/require/stdout.txt
Normal file
2
test/core/fixtures/bin/babel-node/require/stdout.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
foo
|
||||
bar
|
||||
Reference in New Issue
Block a user