swc-project / jest

Super-fast alternative for babel-jest or ts-jest without type checking. Please use main repository for issues
758 stars 37 forks source link

rust file not found error #171

Open jsnoble opened 8 months ago

jsnoble commented 8 months ago

I have some relatively simple test running and its causing a strange error to occur. These tests deal with yargs cli tests and they switch up which tests fail at times, its not always consistent which tests fail but its always the same error. In the mean time I switched this back to ts-jest and everything works

PASS   teraslice-cli  packages/teraslice-cli/test/cmds/assets/init-spec.ts
 PASS   teraslice-cli  packages/teraslice-cli/test/generators/new-asset-spec.ts
thread '<unnamed>' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.273.0/src/config/mod.rs:826:31:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
   0:     0x7f34d6f5f0cc - <unknown>
   1:     0x7f34d6f90210 - <unknown>
   2:     0x7f34d6f5c05f - <unknown>
   3:     0x7f34d6f5eeb4 - <unknown>
   4:     0x7f34d6f606d7 - <unknown>
   5:     0x7f34d6f6043f - <unknown>
   6:     0x7f34d6f60b58 - <unknown>
   7:     0x7f34d6f60a3e - <unknown>
   8:     0x7f34d6f5f596 - <unknown>
   9:     0x7f34d6f607a2 - <unknown>
  10:     0x7f34d52eb0a5 - <unknown>
  11:     0x7f34d52eb5e3 - <unknown>
  12:     0x7f34d5908041 - <unknown>
  13:     0x7f34d546f6b0 - <unknown>
  14:     0x7f34d5463515 - <unknown>
  15:     0x7f34d541769a - <unknown>
  16:           0xc408d9 - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
  17:           0xf328df - _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
  18:           0xf3314d - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEENS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EEPmi
  19:           0xf33615 - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
  20:          0x193cdf6 - Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit
fatal runtime error: failed to initiate panic, error 5
 FAIL   teraslice-cli  packages/teraslice-cli/test/helpers/config-spec.ts
  ● Test suite failed to run

    A jest worker process (pid=2780) was terminated by another process: signal=SIGABRT, exitCode=null. Operating system logs may contain more information on why this occurred.

      at ChildProcessWorker._onExit (node_modules/jest-worker/build/workers/ChildProcessWorker.js:370:23)

how does this error come about?