Skip to content

Commit b3708d0

Browse files
committed
Write integration test
1 parent b8ff0a6 commit b3708d0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/acceptance-tests/pkg-tests-specs/sources/features/catalogs.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,26 @@ describe(`Features`, () => {
271271
),
272272
);
273273

274+
test(
275+
`it should throw an error when protocol in catalog isn't supported by any resolver`,
276+
makeTemporaryEnv(
277+
{
278+
dependencies: {
279+
[`no-deps`]: `catalog:`,
280+
},
281+
},
282+
async ({path, run, source}) => {
283+
await yarn.writeConfiguration(path, {
284+
catalog: {
285+
[`no-deps`]: `unknown-protocol:2.0.0`,
286+
},
287+
});
288+
289+
await expect(run(`install`)).rejects.toThrow();
290+
},
291+
),
292+
);
293+
274294
test(
275295
`it should work with file: protocol ranges in catalogs`,
276296
makeTemporaryEnv(

0 commit comments

Comments
 (0)