(will be reverted) add assertion for CI failure
This commit is contained in:
parent
e1d6174eea
commit
78d5560f9e
|
@ -28,17 +28,16 @@ describe('cli invalid config support', function () {
|
||||||
|
|
||||||
let fatalLogLines;
|
let fatalLogLines;
|
||||||
try {
|
try {
|
||||||
fatalLogLines = stdout
|
fatalLogLines = stdout.toString('utf8').split('\n').filter(Boolean);
|
||||||
.toString('utf8')
|
// .filter((line) => line.includes('[FATAL]'));
|
||||||
.split('\n')
|
|
||||||
.filter(Boolean)
|
|
||||||
.filter((line) => line.includes('[FATAL]'));
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`error parsing log output:\n\n${e.stack}\n\nstdout: \n${stdout}\n\nstderr:\n${stderr}`
|
`error parsing log output:\n\n${e.stack}\n\nstdout: \n${stdout}\n\nstderr:\n${stderr}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expect(fatalLogLines).toEqual([]);
|
||||||
|
|
||||||
expect(error).toBe(undefined);
|
expect(error).toBe(undefined);
|
||||||
expect(fatalLogLines).toHaveLength(1);
|
expect(fatalLogLines).toHaveLength(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue