.toStrictEqual(expect.objectContaining(...))
can be replaced by .toMatchObject(...)
#676
sounisi5011
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The test code in this repository uses many of the following codes:
npm-packages/packages/check-pid-file/tests/index.ts
Lines 92 to 94 in 2a5ca2d
npm-packages/packages/cli/run-if-supported/tests/cli.mts
Lines 179 to 182 in 2a5ca2d
npm-packages/packages/stream-transform-from/tests/public-api.ts
Lines 687 to 689 in 2a5ca2d
However, these test codes can be simplified by using
.toMatchObject(...)
without usingexpect.objectContaining(...)
matchers.Beta Was this translation helpful? Give feedback.
All reactions