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') +})