Skip to content

Commit 88f64c7

Browse files
devversionandrewseguin
authored andcommitted
test: wire up yarn pnp integration test within Bazel
1 parent 9250371 commit 88f64c7

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.bazelignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ integration/ng-update-v13/node_modules
88

99
integration/ng-add/.angular
1010
integration/ng-add/node_modules
11+
12+
integration/yarn-pnp-compat/.angular
13+
integration/yarn-pnp-compat/.yarn/cache
14+
integration/yarn-pnp-compat/.yarn/unplugged
15+
integration/yarn-pnp-compat/.yarn/install-state.gz
16+
integration/yarn-pnp-compat/node_modules
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
load("//tools:defaults.bzl", "node_integration_test")
2+
3+
node_integration_test(
4+
name = "test",
5+
srcs = glob(["**/*"]),
6+
commands = [
7+
"yarn install --no-immutable",
8+
"yarn build",
9+
],
10+
environment = {
11+
# Yarn berry needs a temporary directory that is writeable in the sandbox.
12+
# We acquire a temporary directory for it.
13+
"HOME": "<TMP>",
14+
# Set `CI` to silence `yarn berry` and make the output readable.
15+
"CI": "true",
16+
},
17+
npm_packages = {
18+
"//src/cdk:npm_package_archive": "@angular/cdk",
19+
"//src/material:npm_package_archive": "@angular/material",
20+
},
21+
tags = [
22+
# This test relies on `yarn` so there needs to be internet access.
23+
"requires-network",
24+
],
25+
)

0 commit comments

Comments
 (0)