You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it look like the jest cant find configuration files for test.
there is angular module at path aspec-bazel-jest-repro/src/app/testowy-modul with simple test, when i run test with bazel, i got error
Executing tests from //src/app/testowy-modul:test
-----------------------------------------------------------------------------
�[31m�[31m�[1m�[1m● �[22m�[1mValidation Error�[22m:�[39m�[31m�[39m
�[31m�[31m�[39m�[31m�[39m
�[31m�[31m Module �[1m./setup-jest.js�[22m in the �[1msetupFilesAfterEnv�[22m option was not found.�[39m�[31m�[39m
�[31m�[31m �[1m<rootDir>�[22m is: /home/moczniak/.cache/bazel/_bazel_moczniak/58ab6779564054db7e12387a1a071d0a/sandbox/linux-sandbox/1045/execroot/bla/bazel-out/k8-fastbuild/bin/src/app/testowy-modul/test.sh.runfiles/bla/src/app/testowy-modul�[39m�[31m�[39m
�[31m�[31m�[39m�[31m�[39m
�[31m�[31m �[1mConfiguration Documentation:�[22m�[39m�[31m�[39m
�[31m�[31m https://jestjs.io/docs/configuration�[39m�[31m�[39m
�[31m�[31m�[39m�[31m�[39m
if i commend setupFilesAfterEnv in jest.config.js there is more errors, about tsconfig files.
When i read your js_library documentation, it says i should use copy_to_bin but it look like it copy files to root, not to the specific directory
Version
Development (host) and target OS/architectures:
Output of bazel --version:
bazel 5.3.2
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:
What happened?
i tried to setup your bazel jest with angular but i have some issues,
this is repro repo: https://github.com/moczix/aspec-bazel-jest-repro
it look like the jest cant find configuration files for test.
there is angular module at path
aspec-bazel-jest-repro/src/app/testowy-modul
with simple test, when i run test with bazel, i got errorif i commend
setupFilesAfterEnv
in jest.config.js there is more errors, about tsconfig files.When i read your js_library documentation, it says i should use copy_to_bin but it look like it copy files to root, not to the specific directory
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 5.3.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
ANGULAR
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: