BuildDocsReferenceGuidesBlogDiscordbun:testMatchersPfailMlastCalledWithPnotMnthCalledWithPpassPrejectsPresolvesMtoBeMtoBeArrayMtoBeArrayOfSizeMtoBeBooleanMtoBeCalledMtoBeCalledTimesMtoBeCalledWithMtoBeCloseToMtoBeDateMtoBeDefinedMtoBeEmptyMtoBeEmptyObjectMtoBeEvenMtoBeFalseMtoBeFalsyMtoBeFiniteMtoBeFunctionMtoBeGreaterThanMtoBeGreaterThanOrEqualMtoBeInstanceOfMtoBeIntegerMtoBeLessThanMtoBeLessThanOrEqualMtoBeNaNMtoBeNegativeMtoBeNilMtoBeNullMtoBeNumberMtoBeObjectMtoBeOddMtoBeOneOfMtoBePositiveMtoBeStringMtoBeSymbolMtoBeTrueMtoBeTruthyMtoBeTypeOfMtoBeUndefinedMtoBeValidDateMtoBeWithinMtoContainMtoContainAllKeysMtoContainAllValuesMtoContainAnyKeysMtoContainAnyValuesMtoContainEqualMtoContainKeyMtoContainKeysMtoContainValueMtoContainValuesMtoEndWithMtoEqualMtoEqualIgnoringWhitespaceMtoHaveBeenCalledMtoHaveBeenCalledTimesMtoHaveBeenCalledWithMtoHaveBeenLastCalledWithMtoHaveBeenNthCalledWithMtoHaveLastReturnedWithMtoHaveLengthMtoHaveNthReturnedWithMtoHavePropertyMtoHaveReturnedMtoHaveReturnedTimesMtoHaveReturnedWithMtoIncludeMtoIncludeRepeatedMtoMatchMtoMatchInlineSnapshotMtoMatchObjectMtoMatchSnapshotMtoSatisfyMtoStartWithMtoStrictEqualMtoThrowMtoThrowErrorMtoThrowErrorMatchingInlineSnapshotMtoThrowErrorMatchingSnapshotBuildDocsReferenceGuidesBlogDiscordbun:testMatchersPfailMlastCalledWithPnotMnthCalledWithPpassPrejectsPresolvesMtoBeMtoBeArrayMtoBeArrayOfSizeMtoBeBooleanMtoBeCalledMtoBeCalledTimesMtoBeCalledWithMtoBeCloseToMtoBeDateMtoBeDefinedMtoBeEmptyMtoBeEmptyObjectMtoBeEvenMtoBeFalseMtoBeFalsyMtoBeFiniteMtoBeFunctionMtoBeGreaterThanMtoBeGreaterThanOrEqualMtoBeInstanceOfMtoBeIntegerMtoBeLessThanMtoBeLessThanOrEqualMtoBeNaNMtoBeNegativeMtoBeNilMtoBeNullMtoBeNumberMtoBeObjectMtoBeOddMtoBeOneOfMtoBePositiveMtoBeStringMtoBeSymbolMtoBeTrueMtoBeTruthyMtoBeTypeOfMtoBeUndefinedMtoBeValidDateMtoBeWithinMtoContainMtoContainAllKeysMtoContainAllValuesMtoContainAnyKeysMtoContainAnyValuesMtoContainEqualMtoContainKeyMtoContainKeysMtoContainValueMtoContainValuesMtoEndWithMtoEqualMtoEqualIgnoringWhitespaceMtoHaveBeenCalledMtoHaveBeenCalledTimesMtoHaveBeenCalledWithMtoHaveBeenLastCalledWithMtoHaveBeenNthCalledWithMtoHaveLastReturnedWithMtoHaveLengthMtoHaveNthReturnedWithMtoHavePropertyMtoHaveReturnedMtoHaveReturnedTimesMtoHaveReturnedWithMtoIncludeMtoIncludeRepeatedMtoMatchMtoMatchInlineSnapshotMtoMatchObjectMtoMatchSnapshotMtoSatisfyMtoStartWithMtoStrictEqualMtoThrowMtoThrowErrorMtoThrowErrorMatchingInlineSnapshotMtoThrowErrorMatchingSnapshottest.MatchersMatchersfailnotMatcherspassrejectsMatchersresolvesMatcherslastCalledWithnthCalledWithtoBetoBetoBeArraytoBeArrayOfSizetoBeBooleantoBeCalledtoBeCalledTimestoBeCalledWithtoBeCloseTotoBeDatetoBeDefinedtoBeEmptytoBeEmptyObjecttoBeEventoBeFalsetoBeFalsytoBeFinitetoBeFunctiontoBeGreaterThantoBeGreaterThanOrEqualtoBeInstanceOftoBeIntegertoBeLessThantoBeLessThanOrEqualtoBeNaNtoBeNegativetoBeNiltoBeNulltoBeNumbertoBeObjecttoBeOddtoBeOneOftoBeOneOftoBePositivetoBeStringtoBeSymboltoBeTruetoBeTruthytoBeTypeOftoBeUndefinedtoBeValidDatetoBeWithintoContaintoContaintoContainAllKeystoContainAllKeystoContainAllValuestoContainAnyKeystoContainAnyKeystoContainAnyValuestoContainEqualtoContainEqualtoContainKeytoContainKeytoContainKeystoContainKeystoContainValuetoContainValuestoEndWithtoEqualtoEqualtoEqualIgnoringWhitespacetoHaveBeenCalledtoHaveBeenCalledTimestoHaveBeenCalledWithtoHaveBeenLastCalledWithtoHaveBeenNthCalledWithtoHaveLastReturnedWithtoHaveLengthtoHaveNthReturnedWithtoHavePropertytoHaveReturnedtoHaveReturnedTimestoHaveReturnedWithtoIncludetoIncludeRepeatedtoMatchtoMatchInlineSnapshottoMatchInlineSnapshottoMatchObjecttoMatchSnapshottoMatchSnapshottoSatisfytoStartWithtoStrictEqualtoStrictEqualtoThrowtoThrowErrortoThrowErrorMatchingInlineSnapshottoThrowErrorMatchingSnapshotReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
bun:test Matchers TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- You can extend this interface with declaration merging, in order to add type support for custom matchers.