From 1ef21ab13006d39625835c4dbe317f9da148951f Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Mon, 19 Sep 2022 17:34:12 +0200 Subject: [PATCH] Leave a failing test for tomorrow! --- __tests__/config.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__tests__/config.test.ts b/__tests__/config.test.ts index 8e0203c..214ac63 100644 --- a/__tests__/config.test.ts +++ b/__tests__/config.test.ts @@ -105,3 +105,9 @@ test('in case of conflicts, the external file is the source of truth', async () options = readConfig() expect(options.fail_on_severity).toEqual('low') }) + +test('it accepts an external configuration filename', async () => { + setInput('config-file', './__tests__/fixtures/no-licenses-config.yml') // this will set fail-on-severity to 'critical' + const options = readConfig() + expect(options.fail_on_severity).toEqual('critical') +})