From 76cf465cc2e87c400b6bea56cad1f17f94b91da2 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Fri, 9 Jun 2023 19:26:36 -0700 Subject: `toMatchObject` and some asymmetric matchers (#3260) * `toMatchObject` progress * add `expect.stringContaining()` * add `expect.stringMatching()` * print asymmetric matchers * cleanup * return before printing if constructor value isn't there * move matcher logic to cpp * pretty format and tests * fix formatting for snapshots * format `stringContaining` and `stringMatching` like jest * better test * remove commented tests * remove old property matcher code * add types * make sure all props are matched in arrays * add `Bun.deepMatch` --- src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h') diff --git a/src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h b/src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h index f59e0e855..b16febcdb 100644 --- a/src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h +++ b/src/bun.js/bindings/ZigGeneratedClasses+DOMClientIsoSubspaces.h @@ -5,6 +5,9 @@ std::unique_ptr m_clientSubspaceForBuildMessageConstructo std::unique_ptr m_clientSubspaceForCryptoHasherConstructor;std::unique_ptr m_clientSubspaceForDirent; std::unique_ptr m_clientSubspaceForDirentConstructor;std::unique_ptr m_clientSubspaceForExpect; std::unique_ptr m_clientSubspaceForExpectConstructor;std::unique_ptr m_clientSubspaceForExpectAny; +std::unique_ptr m_clientSubspaceForExpectAnything; +std::unique_ptr m_clientSubspaceForExpectStringContaining; +std::unique_ptr m_clientSubspaceForExpectStringMatching; std::unique_ptr m_clientSubspaceForFileSystemRouter; std::unique_ptr m_clientSubspaceForFileSystemRouterConstructor;std::unique_ptr m_clientSubspaceForListener; std::unique_ptr m_clientSubspaceForMD4; -- cgit v1.2.3