{"_id":"@abstractest/mock","_rev":"3-0195ebdc8ec605b8502b79ef53538867","name":"@abstractest/mock","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0":{"name":"@abstractest/mock","version":"0.0.0","description":"Mocker module for abstractest","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"jest-mock":"^29.5.0"},"devDependencies":{"@abstractest/infra":"workspace:*"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","gitHead":"7734e25025d412a71dd51497950b1da5cf196c8b","_id":"@abstractest/mock@0.0.0","_nodeVersion":"20.3.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-OeG/UQUS9rAM/NkRw77Nc0T4NcpuChg2vNYOMIEBdIoOeXzW84sjjXMVcj2A55TidwCH1ndUeQP19oDrAyTlzg==","shasum":"bb79205bf76692ea1ac3f3b53107f26975f763dc","tarball":"https://registry.npmjs.org/@abstractest/mock/-/mock-0.0.0.tgz","fileCount":7,"unpackedSize":2946,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2fmock@0.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSKggVwrhPNrTWudHw9YF4EcwQJTAVfmfY2DDd1veS0AiA493l4UkIkTelABKzvJOJUouIi5XWbemjx+zE9I2fDww=="}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mock_0.0.0_1687204762434_0.4150714396409074"},"_hasShrinkwrap":false},"0.0.1":{"name":"@abstractest/mock","version":"0.0.1","description":"Mocker module for abstractest","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"jest-mock":"^29.6.1"},"devDependencies":{"@abstractest/infra":"workspace:*"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","gitHead":"2dae4689d39ea578759aa4746b641ab908222613","_id":"@abstractest/mock@0.0.1","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-8nRbrna/mFNQyBlr/lsD0PYTeZwBQ7tD6Q65zz6U76U+0o0L0KH7su+35Ucb/kwrPTsF6jMQuGfWlpMPWfSuuA==","shasum":"f9b61655aaf7eb61ba7a802f6a31e961344abc8c","tarball":"https://registry.npmjs.org/@abstractest/mock/-/mock-0.0.1.tgz","fileCount":7,"unpackedSize":2946,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2fmock@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPPS3YkUKvS4IvwL6UO1XHDfSOsJlrOQW4PLNZK4KLOwIhAKN3Bvwm4fyTQ6/iQWKojsNtMG8HjVV9pxzlUaQGnrtb"}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mock_0.0.1_1688712596125_0.08783588241178308"},"_hasShrinkwrap":false},"0.0.2":{"name":"@abstractest/mock","version":"0.0.2","description":"Mocker module for abstractest","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"jest-mock":"^29.6.1"},"devDependencies":{"@abstractest/infra":"workspace:*"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","gitHead":"b49b892e1827acdce17dc3241d6c8df367714b1f","_id":"@abstractest/mock@0.0.2","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-peXOmJq+5J3twz5BQQnHzxeamF1x6R4OixaT/rZBLzz42niPqzw4Mzhmc8v2V/wru2948k6waEVgV9Ap1SkjCg==","shasum":"2b0ab0ebc92dc50306b9d6c2968e7b9e2676e60c","tarball":"https://registry.npmjs.org/@abstractest/mock/-/mock-0.0.2.tgz","fileCount":7,"unpackedSize":3316,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2fmock@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIFVlHiZ0FQamfb0oTGV06DJ6+dV6RwzSBFEXm8V9hEAiBD28iL3ATfRKkRnT89gosWi7RGWn/1OeC+CqArP7tlVQ=="}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mock_0.0.2_1688845850187_0.7723490225209702"},"_hasShrinkwrap":false},"0.0.3":{"name":"@abstractest/mock","version":"0.0.3","description":"Mocker module for abstractest","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"jest-mock":"^29.6.2"},"devDependencies":{"@abstractest/infra":"workspace:*"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","_id":"@abstractest/mock@0.0.3","gitHead":"2d4e0a8954ee5a0ed4bbd9af2879f3f8c00b9883","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-7FIsTv2DIsQiGLDShgBKmQyDkalz7Pw2zOnJOImtznXj0dJURx/Cij0Pi3R2qBbUJgPYInOab6AtgLA0VFCWOQ==","shasum":"1c24edd2afa3ef1f9e4beeef2fcdc5bf39d457c0","tarball":"https://registry.npmjs.org/@abstractest/mock/-/mock-0.0.3.tgz","fileCount":7,"unpackedSize":3316,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2fmock@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ1cRQ09PuF+2zcxLfPYroGA5O+xCHs2is3CbNJyy1pgIgC6xiZYZk08QcGftDBkeZnxgqLjCdyh+GklwvbB1V9mI="}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mock_0.0.3_1690895244581_0.1105419463819195"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-19T19:59:22.326Z","0.0.0":"2023-06-19T19:59:22.603Z","modified":"2023-08-01T13:07:25.058Z","0.0.1":"2023-07-07T06:49:56.296Z","0.0.2":"2023-07-08T19:50:50.395Z","0.0.3":"2023-08-01T13:07:24.785Z"},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"description":"Mocker module for abstractest","homepage":"https://github.com/antongolub/abstractest#readme","repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"license":"MIT","readme":"# @abstractest/mock\n> Mocker module for abstractest\n\n## Install\n```shell\nyarn add @abstractest/mock\n```\n\n## Usage\nReturns pre-initialized `jest-mock` instance.\n```ts\nimport * as assert from 'node:assert'\nimport {mock} from '@abstractest/mock'\n\nconst m = mock.fn(v => v)\n\nm.mockReturnValueOnce('foo')\nassert.equal(m('bar'), 'foo')\nassert.equal(m('baz'), 'baz')\nassert.deepEqual(m.mock.calls, [\n  ['bar'],\n  ['baz'],\n])\n```\n\n## License\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}