Skip to content

Commit 9d0be0b

Browse files
committed
test: extend tests for --config property if the path has invalid or unsupported extension
1 parent b7a13f5 commit 9d0be0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/size-limit/test/run.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ it('throws on --config argument with invalid FILE parameter', async () => {
211211
)
212212
})
213213

214+
it('throws on --config argument with invalid FILE extension', async () => {
215+
expect(
216+
await error('file', ['--config', 'invalid/config/path.extension'])
217+
).toContain('No loader specified for extension')
218+
})
219+
214220
it('throws on no config', async () => {
215221
expect(await error('file')).toMatchSnapshot()
216222
})

0 commit comments

Comments
 (0)