Skip to content

Commit

Permalink
test: extend tests for --config property if the path has invalid or u…
Browse files Browse the repository at this point in the history
…nsupported extension
  • Loading branch information
EvgenyWas committed Jan 28, 2025
1 parent b7a13f5 commit 9d0be0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/size-limit/test/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ it('throws on --config argument with invalid FILE parameter', async () => {
)
})

it('throws on --config argument with invalid FILE extension', async () => {
expect(
await error('file', ['--config', 'invalid/config/path.extension'])
).toContain('No loader specified for extension')
})

it('throws on no config', async () => {
expect(await error('file')).toMatchSnapshot()
})
Expand Down

0 comments on commit 9d0be0b

Please sign in to comment.