node
05/17/2024, 3:51 PMcriteria field and the Medplum-specific filter extensions?
Having access to matchesCriteria could be valuable to enable unit testing https://github.com/medplum/medplum/blob/7b3bc8c51f49975c372d63a18bc77cad824aa76d/packages/server/src/workers/subscription.ts#L264-L269, although, withTestContext would also need to be made available https://github.com/medplum/medplum/blob/7b3bc8c51f49975c372d63a18bc77cad824aa76d/packages/server/src/test.setup.ts#L275
I see some of the internal unit tests are mocking the repo and subscription queue but this seems fairly cumbersome and also requires the withTestContext
https://github.com/medplum/medplum/blob/7b3bc8c51f49975c372d63a18bc77cad824aa76d/packages/server/src/workers/subscription.test.ts#L1303-L1344reshma
05/22/2024, 12:08 AMnode
05/22/2024, 2:17 PM