We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ff0a6 commit b3708d0Copy full SHA for b3708d0
packages/acceptance-tests/pkg-tests-specs/sources/features/catalogs.test.ts
@@ -271,6 +271,26 @@ describe(`Features`, () => {
271
),
272
);
273
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
294
test(
295
`it should work with file: protocol ranges in catalogs`,
296
makeTemporaryEnv(
0 commit comments