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
$ deno test example.js Check file:///Users/dan/Source/MiniProjects/example.jsUncaught error from ./example.js FAILED ERRORS ./example.js (uncaught error)error: (in promise) TypeError: ops.op_register_bench is not a functionDeno.bench('abench', async () => {}) ^ at Object.bench (ext:cli/40_bench.js:53:32) at file:///Users/dan/Source/MiniProjects/example.js:2:6This error was not caught from a test and caused the test runner to fail on the referenced module.It most likely originated from a dangling promise, event/timeout handler or top-level code. FAILURES ./example.js (uncaught error)FAILED | 0 passed | 1 failed (0ms)error: Test failedStack backtrace: 0: std::backtrace::Backtrace::capture 1: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from 2: deno_core::error::generic_error 3: deno::tools::test::report_tests::{{closure}} 4: <deno_unsync::task::MaskFutureAsSend<F> as core::future::future::Future>::poll 5: tokio::runtime::task::raw::poll 6: deno::main 7: std::sys_common::backtrace::__rust_begin_short_backtrace 8: _main
$ deno bench example.js error: (in promise) TypeError: op_register_test is not a functionDeno.test('atest', async () => {}) ^ at testInner (ext:cli/40_test.js:472:18) at Object.test (ext:cli/40_test.js:499:10) at file:///Users/dan/Source/MiniProjects/example.js:1:6This error was not caught from a benchmark and caused the bench runner to fail on the referenced module.It most likely originated from a dangling promise, event/timeout handler or top-level code.error: Bench failedStack backtrace: 0: std::backtrace::Backtrace::capture 1: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from 2: deno_core::error::generic_error 3: <deno_unsync::task::MaskFutureAsSend<F> as core::future::future::Future>::poll 4: tokio::runtime::task::raw::poll 5: deno::main 6: std::sys_common::backtrace::__rust_begin_short_backtrace 7: _main
The text was updated successfully, but these errors were encountered:
Version: Deno 1.40.5, 1.41.3
If you have both tests and benchmarks in the same file, both
deno test
anddeno bench
fail. This appears to work in 1.39.4.The text was updated successfully, but these errors were encountered: