Skip to content

Commit d6b4957

Browse files
fiskersindresorhus
authored andcommitted
Update integration test script (#282)
1 parent 7542453 commit d6b4957

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/integration/test.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ const execute = name => {
128128
title: 'Clean up',
129129
task: () => del(dest, {force: true})
130130
}
131-
], {
131+
].map(({title, task}) => ({
132+
title: `${name} / ${title}`,
133+
task
134+
})), {
132135
exitOnError: false
133136
});
134137
};
@@ -155,14 +158,21 @@ const list = new Listr([
155158
return tests;
156159
}
157160
}
158-
]);
161+
], {
162+
renderer: process.env.INTEGRATION ? 'verbose' : 'default'
163+
});
159164

160165
list.run()
161166
.catch(error => {
162167
if (error.errors) {
163168
for (const error2 of error.errors) {
164169
console.error('\n', chalk.red.bold.underline(error2.packageName), chalk.gray('(' + error2.cliArgs.join(' ') + ')'));
165170
console.error(error2.message);
171+
172+
if (error2.stderr) {
173+
console.error(chalk.gray(error2.stderr));
174+
}
175+
166176
if (error2.eslintMessage) {
167177
console.error(chalk.gray(error2.eslintFile.filePath), chalk.gray(JSON.stringify(error2.eslintMessage, null, 2)));
168178
}

0 commit comments

Comments
 (0)