aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/node-test-helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/bun.js/node-test-helpers.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/bun.js/node-test-helpers.ts b/test/bun.js/node-test-helpers.ts
index ff7b8ece3..fbad2a3bf 100644
--- a/test/bun.js/node-test-helpers.ts
+++ b/test/bun.js/node-test-helpers.ts
@@ -55,7 +55,12 @@ export const match = (...args: Parameters<typeof assertNode.match>) => {
expect(true).toBe(true);
};
-export const assert = {
+export const assert = function (...args: any[]) {
+ // @ts-ignore
+ assertNode(...args);
+};
+
+Object.assign(assert, {
strictEqual,
deepStrictEqual,
notStrictEqual,
@@ -63,7 +68,7 @@ export const assert = {
ok,
ifError,
match,
-};
+});
// End assert