Skip to content

Commit 1ec4c46

Browse files
alan-agius4pull[bot]
authored andcommitted
test: disable resolve global test which fails under bazel
This test currently fails under Bazel. `Expected function not to throw, but it threw Error: Could not find module "npm" from "/"..` NB: The resolve method is deprecated
1 parent 1101967 commit 1ec4c46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular_devkit/core/node/resolve_spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ describe('resolve', () => {
1717

1818
expect(() => resolve('npm', { basedir: '/' })).toThrow();
1919

20-
expect(() => resolve('npm', { basedir: '/', checkGlobal: true })).not.toThrow();
20+
if (!process.env['BAZEL_TARGET']) {
21+
expect(() => resolve('npm', { basedir: '/', checkGlobal: true })).not.toThrow();
22+
}
2123
});
2224

2325
});

0 commit comments

Comments
 (0)