Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Panic in Jest #23917

Closed
marvinhagemeister opened this issue May 21, 2024 · 0 comments · Fixed by #23976
Closed

Bug: Panic in Jest #23917

marvinhagemeister opened this issue May 21, 2024 · 0 comments · Fixed by #23976
Assignees
Labels
bug Something isn't working correctly node compat

Comments

@marvinhagemeister
Copy link
Contributor

Steps to reproduce

  1. Create a new folder and cd into it
  2. Run npm init -y && npm i jest
  3. Run DENO_FUTURE=1 deno run -A npm:jest -> panic

Error

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos aarch64
Version: 1.43.5
Args: ["/Users/marvinh/dev/denoland/deno/target/debug/deno", "run", "-A", "npm:jest"]

thread 'main' panicked at /Users/marvinh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.280.0/runtime/jsrealm.rs:208:46:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:647:5
   1: core::panicking::panic_fmt
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:144:5
   3: core::option::unwrap_failed
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/option.rs:1978:5
   4: core::option::Option<T>::unwrap
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/option.rs:931:21
   5: deno_core::runtime::jsrealm::JsRealm::module_map_from
             at /Users/marvinh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.280.0/runtime/jsrealm.rs:208:5
   6: deno_core::ops_builtin_v8::op_lazy_load_esm::op_lazy_load_esm::call
             at /Users/marvinh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.280.0/ops_builtin_v8.rs:202:23
   7: deno_core::ops_builtin_v8::op_lazy_load_esm::op_lazy_load_esm::slow_function_impl
             at /Users/marvinh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.280.0/ops_builtin_v8.rs:196:1
   8: deno_core::ops_builtin_v8::op_lazy_load_esm::op_lazy_load_esm::v8_fn_ptr
             at /Users/marvinh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.280.0/ops_builtin_v8.rs:196:1
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Version: Deno 1.43.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants