Skip to content

Regression in 2.0.0 autogenerated test rules #2008

@WesleyYue

Description

@WesleyYue

🐞 bug report

Is this a regression?

Yes, this works in 1.6.1

Description

It looks like this bug regressed in the 2.0.0 release candidates.

🔬 Minimal Reproduction

Repo to repro here.

🔥 Exception or Error


exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //:test
-----------------------------------------------------------------------------
FAIL ./lib.test.js
  ● Test suite failed to run

    Cannot find module 'jest_repro/lib' from 'lib.test.js'

      at Resolver.resolveModule (../../../../../node_modules/jest-resolve/build/index.js:259:17)
      at ../../../lib.test.ts:1:1
      at lib.test.js:3:13
      at Object. (lib.test.js:8:3)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        8.091s
Ran all test suites within paths "./lib.test.js".

🌍 Your Environment

Operating System:

  
Ubuntu 18.04.4 LTS
  

Output of bazel version:

  
Build label: 3.1.0- (@non-git)
Build target: bazel-out/aarch64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jul 7 00:47:49 2020 (1594082869)
Build timestamp: 1594082869
Build timestamp as int: 1594082869
  

Rules_nodejs version:

(Please check that you have matching versions between WORKSPACE file and @bazel/* npm packages.)

  
2.0.0-rc.1
  

Anything else relevant?
I'm building on an aarch64 platform.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions