3 Object.defineProperty(exports, '__esModule', {
6 exports.test = exports.serialize = undefined;
8 var _collections = require('../collections');
11 * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
13 * This source code is licensed under the MIT license found in the
14 * LICENSE file in the root directory of this source tree.
19 const asymmetricMatcher = Symbol.for('jest.asymmetricMatcher');
22 const serialize = (exports.serialize = (
30 const stringedValue = val.toString();
33 stringedValue === 'ArrayContaining' ||
34 stringedValue === 'ArrayNotContaining'
36 if (++depth > config.maxDepth) {
37 return '[' + stringedValue + ']';
43 (0, _collections.printListItems)(
56 stringedValue === 'ObjectContaining' ||
57 stringedValue === 'ObjectNotContaining'
59 if (++depth > config.maxDepth) {
60 return '[' + stringedValue + ']';
66 (0, _collections.printObjectProperties)(
79 stringedValue === 'StringMatching' ||
80 stringedValue === 'StringNotMatching'
85 printer(val.sample, config, indentation, depth, refs)
90 stringedValue === 'StringContaining' ||
91 stringedValue === 'StringNotContaining'
96 printer(val.sample, config, indentation, depth, refs)
100 return val.toAsymmetricMatcher();
103 const test = (exports.test = val => val && val.$$typeof === asymmetricMatcher);
105 exports.default = {serialize: serialize, test: test};