Babel cli test correction (#10128)
This commit is contained in:
parent
b8bb93a838
commit
31fc1d06bc
@ -86,7 +86,7 @@ const assertTest = function(stdout, stderr, opts, cwd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opts.outFiles) {
|
if (opts.outFiles) {
|
||||||
const actualFiles = readDir(path.join(tmpLoc), fileFilter);
|
const actualFiles = readDir(tmpLoc, fileFilter);
|
||||||
|
|
||||||
Object.keys(actualFiles).forEach(function(filename) {
|
Object.keys(actualFiles).forEach(function(filename) {
|
||||||
if (
|
if (
|
||||||
@ -171,12 +171,12 @@ const buildTest = function(binName, testName, opts) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
fs.readdirSync(fixtureLoc).forEach(function(binName) {
|
fs.readdirSync(fixtureLoc).forEach(function(binName) {
|
||||||
if (binName[0] === ".") return;
|
if (binName.startsWith(".")) return;
|
||||||
|
|
||||||
const suiteLoc = path.join(fixtureLoc, binName);
|
const suiteLoc = path.join(fixtureLoc, binName);
|
||||||
describe("bin/" + binName, function() {
|
describe("bin/" + binName, function() {
|
||||||
fs.readdirSync(suiteLoc).forEach(function(testName) {
|
fs.readdirSync(suiteLoc).forEach(function(testName) {
|
||||||
if (testName[0] === ".") return;
|
if (testName.startsWith(".")) return;
|
||||||
|
|
||||||
const testLoc = path.join(suiteLoc, testName);
|
const testLoc = path.join(suiteLoc, testName);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user