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+DOMIsoSubspaces.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bun.js/bindings/ZigGeneratedClasses+DOMIsoSubspaces.h') diff --git a/src/bun.js/bindings/ZigGeneratedClasses+DOMIsoSubspaces.h b/src/bun.js/bindings/ZigGeneratedClasses+DOMIsoSubspaces.h index 3e80b933b..59263e62c 100644 --- a/src/bun.js/bindings/ZigGeneratedClasses+DOMIsoSubspaces.h +++ b/src/bun.js/bindings/ZigGeneratedClasses+DOMIsoSubspaces.h @@ -5,6 +5,9 @@ std::unique_ptr m_subspaceForBuildMessageConstructor;std::unique_pt std::unique_ptr m_subspaceForCryptoHasherConstructor;std::unique_ptr m_subspaceForDirent; std::unique_ptr m_subspaceForDirentConstructor;std::unique_ptr m_subspaceForExpect; std::unique_ptr m_subspaceForExpectConstructor;std::unique_ptr m_subspaceForExpectAny; +std::unique_ptr m_subspaceForExpectAnything; +std::unique_ptr m_subspaceForExpectStringContaining; +std::unique_ptr m_subspaceForExpectStringMatching; std::unique_ptr m_subspaceForFileSystemRouter; std::unique_ptr m_subspaceForFileSystemRouterConstructor;std::unique_ptr m_subspaceForListener; std::unique_ptr m_subspaceForMD4; -- cgit v1.2.3