"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBeDisposed = void 0;
const internal_1 = require("@apollo/client/react/internal");
const toBeDisposed = function (_queryRef) {
    const hint = this.utils.matcherHint("toBeDisposed", "queryRef", "", {
        isNot: this.isNot,
    });
    const queryRef = _queryRef;
    (0, internal_1.assertWrappedQueryRef)(queryRef);
    const pass = (0, internal_1.unwrapQueryRef)(queryRef).disposed;
    return {
        pass,
        message: () => {
            return `${hint}\n\nExpected queryRef ${this.isNot ? "not " : ""}to be disposed, but it was${this.isNot ? "" : " not"}.`;
        },
    };
};
exports.toBeDisposed = toBeDisposed;
//# sourceMappingURL=toBeDisposed.cjs.map
