build: schematics unit tests not being run #22293
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the schematics unit tests aren't being run and are assumed as passing. This was a result
of the following issues:
require.resolve
call in theindex.spec.ts
files was failing, but it was inside of aPromise
so it got silenced. It caused the test runner to completely give up on running the tests. I was only able to see the failure using a debugger.require.resolve
call worked as expected, thefilegroup
call doesn't seem to actually work, at least on Windows which would prevent the files from showing up in the Bazel directory. I've switched it tocopy_to_bin
.index.spec.ts
, presumably because the file name follows the same pattern as unit test files. I've renamed it topaths.ts
as a workaround.