• Version 1.4.33
  • Published
  • 4.59 kB
  • No dependencies
  • MIT license


npm i @types/mockery
yarn add @types/mockery
pnpm add @types/mockery


TypeScript definitions for mockery



function deregisterAll

deregisterAll: () => void;

    function deregisterAllowable

    deregisterAllowable: (name: string) => void;

      function deregisterAllowables

      deregisterAllowables: (names: string[]) => void;

        function deregisterMock

        deregisterMock: (name: string) => void;

          function deregisterSubstitute

          deregisterSubstitute: (name: string) => void;

            function disable

            disable: () => void;

              function enable

              enable: (args?: MockeryEnableArgs) => void;

                function registerAllowable

                registerAllowable: (name: string, unhook?: boolean) => void;

                  function registerAllowables

                  registerAllowables: (names: string[]) => void;

                    function registerMock

                    registerMock: (name: string, mock: any) => void;

                      function registerSubstitute

                      registerSubstitute: (name: string, substitute: string) => void;

                        function resetCache

                        resetCache: () => void;

                          function warnOnReplace

                          warnOnReplace: (value: boolean) => void;

                            function warnOnUnregistered

                            warnOnUnregistered: (value: boolean) => void;


                              interface MockeryEnableArgs

                              interface MockeryEnableArgs {}

                                property useCleanCache

                                useCleanCache?: boolean | undefined;

                                  property warnOnReplace

                                  warnOnReplace?: boolean | undefined;

                                    property warnOnUnregistered

                                    warnOnUnregistered?: boolean | undefined;

                                      Package Files (1)

                                      Dependencies (0)

                                      No dependencies.

                                      Dev Dependencies (0)

                                      No dev dependencies.

                                      Peer Dependencies (0)

                                      No peer dependencies.


                                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/mockery.

                                      • Markdown
                                      • HTML
                                        <a href="https://www.jsdocs.io/package/@types/mockery"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>