Ensure babel-cli tests compare generated output with out-files (#5205)
This commit is contained in:
0
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/README.md
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/foo/bar.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/foo/bar.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
index;
|
||||
8
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/options.json
vendored
Normal file
8
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/options.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"args": [
|
||||
"src",
|
||||
"--out-dir", "lib",
|
||||
"--copy-files",
|
||||
"--ignore", "src/foo/*"
|
||||
]
|
||||
}
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/README.md
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/foo/bar.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/foo/bar.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
3
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/index.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
index;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with ignore/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
src/index.js -> lib/index.js
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/README.md
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/foo/bar.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/foo/bar.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
index;
|
||||
8
packages/babel-cli/test/fixtures/babel/--copy-files with only/options.json
vendored
Normal file
8
packages/babel-cli/test/fixtures/babel/--copy-files with only/options.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"args": [
|
||||
"src",
|
||||
"--out-dir", "lib",
|
||||
"--copy-files",
|
||||
"--only", "src/foo/*"
|
||||
]
|
||||
}
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/README.md
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/foo/bar.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/foo/bar.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
index;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/stdout.txt
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files with only/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
src/foo/bar.js -> lib/foo/bar.js
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/.foorc
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/.foorc
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/README.md
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/bar/index.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/bar/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bar;
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/foo/foo.js
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/foo/foo.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--copy-files"]
|
||||
}
|
||||
0
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/README.md
vendored
Normal file
0
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/README.md
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/bar/index.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/bar/index.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
bar;
|
||||
1
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/foo/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/foo/foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
2
packages/babel-cli/test/fixtures/babel/--copy-files/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/--copy-files/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/bar/index.js -> lib/bar/index.js
|
||||
src/foo/foo.js -> lib/foo/foo.js
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a.foo;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/b.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/b.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
b;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/b.foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/b.foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
b.foo;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/c.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/c.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
c;
|
||||
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo;
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore glob/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore glob/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--ignore", "**/*.foo.js"]
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/a.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/a.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
a;
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/b.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/b.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
b;
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/baz/c.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/baz/c.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
c;
|
||||
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/foo.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/foo.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
foo;
|
||||
4
packages/babel-cli/test/fixtures/babel/--ignore glob/stdout.txt
vendored
Normal file
4
packages/babel-cli/test/fixtures/babel/--ignore glob/stdout.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
src/a.js -> lib/a.js
|
||||
src/b.js -> lib/b.js
|
||||
src/baz/c.js -> lib/baz/c.js
|
||||
src/foo.js -> lib/foo.js
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a.foo;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/b.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/b.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
b;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/b.foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/b.foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
b.foo;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/c.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/c.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
c;
|
||||
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/foo.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo;
|
||||
3
packages/babel-cli/test/fixtures/babel/--only glob/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only glob/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--only", "**/*.foo.js"]
|
||||
}
|
||||
3
packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/a.foo.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/a.foo.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
a.foo;
|
||||
3
packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/baz/b.foo.js
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/baz/b.foo.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
b.foo;
|
||||
2
packages/babel-cli/test/fixtures/babel/--only glob/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/--only glob/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/a.foo.js -> lib/a.foo.js
|
||||
src/baz/b.foo.js -> lib/baz/b.foo.js
|
||||
@@ -5,4 +5,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
||||
var Test = function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iYXIvYmFyLmpzIl0sIm5hbWVzIjpbIlRlc3QiXSwibWFwcGluZ3MiOiI7Ozs7SUFBTUEsSSIsImZpbGUiOiJiYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBUZXN0IHtcblxufSJdfQ==
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iYXIvYmFyLmpzIl0sIm5hbWVzIjpbIlRlc3QiXSwibWFwcGluZ3MiOiI7Ozs7SUFBTUEsSSIsImZpbGUiOiJiYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBUZXN0IHtcblxufSJdfQ==
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mb28uanMiXSwibmFtZXMiOlsiYXJyIiwibWFwIiwieCIsIk1VTFRJUExJRVIiXSwibWFwcGluZ3MiOiI7O0FBQUFBLElBQUlDLEdBQUosQ0FBUTtBQUFBLFNBQUtDLElBQUlDLFVBQVQ7QUFBQSxDQUFSIiwiZmlsZSI6ImZvby5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mb28uanMiXSwibmFtZXMiOlsiYXJyIiwibWFwIiwieCIsIk1VTFRJUExJRVIiXSwibWFwcGluZ3MiOiI7O0FBQUFBLElBQUlDLEdBQUosQ0FBUTtBQUFBLFNBQUtDLElBQUlDLFVBQVQ7QUFBQSxDQUFSIiwiZmlsZSI6ImZvby5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
||||
|
||||
@@ -4,4 +4,4 @@ arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQUksR0FBSixDQUFRO0FBQUEsU0FBSyxJQUFJLFVBQVQ7QUFBQSxDQUFSIiwiZmlsZSI6InNjcmlwdDIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJhcnIubWFwKHggPT4geCAqIE1VTFRJUExJRVIpOyJdfQ==
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQUksR0FBSixDQUFRO0FBQUEsU0FBSyxJQUFJLFVBQVQ7QUFBQSxDQUFSIiwiZmlsZSI6InNjcmlwdDIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJhcnIubWFwKHggPT4geCAqIE1VTFRJUExJRVIpOyJdfQ==
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"inlineSourceMap": true
|
||||
"sourceMap": "inline"
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@ var foo = function foo() {
|
||||
return 4;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yaWdpbmFsLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsVUFBVSxlO1MsQUFBTTtBQUFDIiwiZmlsZSI6InNjcmlwdDIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgZm9vID0gKCkgPT4gNDsiXX0=
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yaWdpbmFsLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsVUFBVSxlO1MsQUFBTTtBQUFDIiwiZmlsZSI6InNjcmlwdDIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgZm9vID0gKCkgPT4gNDsiXX0=
|
||||
|
||||
@@ -11,4 +11,4 @@ arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyIsInNjcmlwdDIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztJQUFNLEk7Ozs7O0FDQU4sSUFBSSxHQUFKLENBQVE7QUFBQSxTQUFLLElBQUksVUFBVDtBQUFBLENBQVIiLCJmaWxlIjoic2NyaXB0My5qcyIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIFRlc3Qge1xuXG59IiwiYXJyLm1hcCh4ID0+IHggKiBNVUxUSVBMSUVSKTsiXX0=
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyIsInNjcmlwdDIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztJQUFNLEk7Ozs7O0FDQU4sSUFBSSxHQUFKLENBQVE7QUFBQSxTQUFLLElBQUksVUFBVDtBQUFBLENBQVIiLCJmaWxlIjoic2NyaXB0My5qcyIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIFRlc3Qge1xuXG59IiwiYXJyLm1hcCh4ID0+IHggKiBNVUxUSVBMSUVSKTsiXX0=
|
||||
|
||||
Reference in New Issue
Block a user