Commit dc0205c
test: reduce Bazel module count by consolidating e2e tests into examples (#2791)
Remove 5 standalone e2e Bazel modules (44 → 39) by merging or moving
tests that don't require their own module-level configuration:
- e2e/npm_link_package-esm: merged into e2e/npm_link_package by adding
.mjs ESM variants alongside existing .js files
- e2e/package_json_module: moved to examples/package_json_module; the
"type: module" scoping is per-directory so it works as a sub-package
- e2e/runfiles: merged into examples/runfiles; added module-name path
tests (module_name_test.js), nested binary runfiles propagation tests
(outer.js), and js_run_binary tests (resolve-args.js)
- e2e/stamped_package_json: moved to examples/stamped_package_json;
added jq.bzl as a dev dep to examples/MODULE.bazel; excluded from
pnpm workspace since package.json contains a stamp template version
- e2e/worker: moved to examples/worker; no npm deps and bazel_lib +
rules_nodejs are already available in examples
I also moved the protobuf examples from examples/protobuf into e2e/ for
consistency.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
### Changes are visible to end-users: no
### Test plan
- Covered by existing test cases
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>1 parent 4960a9e commit dc0205c
110 files changed
Lines changed: 251 additions & 1435 deletions
File tree
- .aspect/workflows
- e2e
- npm_link_package-esm
- npm_link_package
- cjs
- lib
- pkg
- src
- wrapper-lib
- subdir
- esm
- lib
- pkg
- src
- wrapper-lib
- subdir
- package_json_module
- protobuf-es
- status
- tools
- toolchains
- protobuf-google
- tools/toolchains
- runfiles
- stamped_package_json
- worker
- examples
- .aspect/rules/external_repository_action_cache
- package_json_module
- runfiles
- stamped_package_json
- worker
- js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 86 | | |
93 | 87 | | |
94 | 88 | | |
| |||
121 | 115 | | |
122 | 116 | | |
123 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 130 | | |
137 | 131 | | |
138 | 132 | | |
| |||
142 | 136 | | |
143 | 137 | | |
144 | 138 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
| |||
153 | 144 | | |
154 | 145 | | |
155 | 146 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 147 | | |
163 | 148 | | |
164 | 149 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments