aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Ethan Burrell <30448729+ethanburrell@users.noreply.github.com> 2022-12-21 14:36:44 -0800
committerGravatar GitHub <noreply@github.com> 2022-12-21 14:36:44 -0800
commit4f7d06500c073c3ac35c2fc6bdbd0ce90e03f36f (patch)
tree40596f95b4efef8fd7c8511f0a597b0661ce1018 /src/bun.js
parentf6bbfa7e404ec21f5aa3f60fabbd4a290a3b379d (diff)
downloadbun-4f7d06500c073c3ac35c2fc6bdbd0ce90e03f36f.tar.gz
bun-4f7d06500c073c3ac35c2fc6bdbd0ce90e03f36f.tar.zst
bun-4f7d06500c073c3ac35c2fc6bdbd0ce90e03f36f.zip
fix jest hooks in bun-test (#1639)
* fix(jest) fix broken jest hooks * add tests
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/test/jest.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bun.js/test/jest.zig b/src/bun.js/test/jest.zig
index c0c607622..7e6f59c2e 100644
--- a/src/bun.js/test/jest.zig
+++ b/src/bun.js/test/jest.zig
@@ -1431,18 +1431,19 @@ pub const DescribeScope = struct {
pub threadlocal var module: *DescribeScope = undefined;
const CallbackFn = fn (
- this: *DescribeScope,
+ _: void,
ctx: js.JSContextRef,
_: js.JSObjectRef,
_: js.JSObjectRef,
arguments: []const js.JSValueRef,
exception: js.ExceptionRef,
) js.JSObjectRef;
+
fn createCallback(comptime hook: LifecycleHook) CallbackFn {
return struct {
const this_hook = hook;
pub fn run(
- _: *DescribeScope,
+ _: void,
ctx: js.JSContextRef,
_: js.JSObjectRef,
_: js.JSObjectRef,