mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
test: Always collect coverage
But only set the threshold when running unit tests specifically. This way coverage for single classes can easily be tested.
This commit is contained in:
@@ -157,7 +157,9 @@ describe('CliRunner', (): void => {
|
||||
|
||||
it('exits with output to stderr when instantiation fails.', async(): Promise<void> => {
|
||||
manager.instantiate.mockRejectedValueOnce(new Error('Fatal'));
|
||||
new CliRunner().run();
|
||||
new CliRunner().run({
|
||||
argv: [ 'node', 'script' ],
|
||||
});
|
||||
await new Promise((resolve): any => setImmediate(resolve));
|
||||
|
||||
expect(write).toHaveBeenCalledTimes(2);
|
||||
|
||||
Reference in New Issue
Block a user