{"_id":"@arthurfiorette/jest-prisma-core","_rev":"3-57714941156a0b9b167934f58cdd1c2a","name":"@arthurfiorette/jest-prisma-core","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.1":{"name":"@arthurfiorette/jest-prisma-core","version":"1.0.1","main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=14.13"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./index.mjs"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.js"}}},"homepage":"https://github.com/Quramy/jest-prisma","repository":{"type":"git","url":"git+https://github.com/Quramy/jest-prisma.git"},"dependencies":{"chalk":"^4.0.0"},"peerDependencies":{"jest":"^28.0.0 || ^29.0.0"},"scripts":{"bootstrap":"tsc","prepublish":"exit 0","test:ci":"echo \"test\"","test":"echo \"test\""},"keywords":["jest","jest-environment","prisma"],"author":{"name":"Quramy"},"license":"MIT","gitHead":"e45b129d54f8a2aca5731f8b1aaec6dc4446a217","description":"Utility class to build Jest environment for Prisma.","bugs":{"url":"https://github.com/Quramy/jest-prisma/issues"},"_id":"@arthurfiorette/jest-prisma-core@1.0.1","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-xDCRGSjBKZpuMpTb2maujpinT9UAi871Z2bD/ZSYyT77UDIciS5IJANLH2cCdzJtAJshRQKs9mSAiKyNm3Y7KQ==","shasum":"e87260859fdc87b746524e421cfe42ed8fa95892","tarball":"https://registry.npmjs.org/@arthurfiorette/jest-prisma-core/-/jest-prisma-core-1.0.1.tgz","fileCount":9,"unpackedSize":11335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwHIGDSvYOEYv66N7G9PKAdKKClq37VCEEo91PlleUTAIhANDqv+WZFyEQ3jHnNE2Z0NIB8UVe28FKKPNJsc56T/oU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/4F9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaYBAAj9Yi3opYPNIpZS04+6qiazaoJSsCRzD+p9IkEnRy4aA4SJQK\r\n7l2MFGiNDsV4aPbibz5r1Tpv7qkC8X2csxNEKQ0h0DaK6178Dlg4ISXrCEna\r\nHz6uIH8u+L8CU9YT2LPAVEeAyUZGHPfscdp8tR3R1ipIk2EUPvHQRZtUBLbV\r\n1eIM5UWlGUV6u06hy/stm5YUNUWjTQWOLA813nnHiPiH6IaUH/fMMaDYGrOB\r\ngG/GSR5HBIeYt7ZVlYceuPvLOfIo6LspgKM29bEGMR0DMjNn2pMKXM5CDUyM\r\nQmZZ+3fksj6N/9FqFlqvCmnjifXtPTiA9NxoXxJ6tNwVBMbksl+h2x3buAw2\r\na7Y9wv+cABFucZwYAD9RlE8kwpzyf2gs2X3o9w0zbJWwbTW93u6pAbvR3xhF\r\nKOYfXDlgMAOMRYfPI3etgn2ji/gDIkgqTOA9jrhkL116UXER1GMXBn+8bcOV\r\nXoyl+KpKGBzHFpLh8yEMyxqKgTnEkHiqKmkQD1etPEW3SX8u76Epolu6daUN\r\nv+TyvZQ9ifhERn6K5BRH/5UB8huNuf46suXKJCahmjG63XR8EGf4ufKXz6SP\r\nIGt4MnvhP+eOpQmlNmo48lKa9R22ZKU0a7zMFCjYtDnOTa3Q9j9RkrESRhWy\r\n3AP1qF75Xtjj+dqnTO+SBJu+ec3rSddU25E=\r\n=f9rf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"directories":{},"maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-prisma-core_1.0.1_1677689212806_0.3115212227526527"},"_hasShrinkwrap":false},"1.1.0":{"name":"@arthurfiorette/jest-prisma-core","version":"1.1.0","main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=14.13"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./index.mjs"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.js"}}},"homepage":"https://github.com/Quramy/jest-prisma","repository":{"type":"git","url":"git+https://github.com/Quramy/jest-prisma.git"},"dependencies":{"chalk":"^4.0.0"},"peerDependencies":{"jest":"^28.0.0 || ^29.0.0"},"scripts":{"bootstrap":"tsc","prepublish":"exit 0","test:ci":"echo \"test\"","test":"echo \"test\""},"keywords":["jest","jest-environment","prisma"],"author":{"name":"Quramy"},"license":"MIT","gitHead":"21b00d926544fa408fef88453efcae172f5fd272","description":"Utility class to build Jest environment for Prisma.","bugs":{"url":"https://github.com/Quramy/jest-prisma/issues"},"_id":"@arthurfiorette/jest-prisma-core@1.1.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ffn60yz3AEXn0yJjRlk6l8JfdyoV3IBW0ni0kyOXR1xzAl2t/LiswL3FoQ13MF17gOdpO8aul0OkkCZD60KU4g==","shasum":"72512d1d71c0c3f127978eb4d481ac53ebd03e7f","tarball":"https://registry.npmjs.org/@arthurfiorette/jest-prisma-core/-/jest-prisma-core-1.1.0.tgz","fileCount":9,"unpackedSize":12815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoyRhXVgGUksb9+VkhBcFx3VEtQcG0/R5xZ+lSG0N0/AiEAwpUzU4nj4WMk/h/LleFJEIivRuyo+6ARULzvGBHPnU8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGdlnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzThAAoA/rljCdKFNMLlz8boFVJST1A2SCNznR7T5JNgMRnO614Gka\r\n8AuBr0nEqNRxUmks2qLbkx4zWbmmE/Y+obl3f7rle3u9YzUrXFy/enA+CCGw\r\n7r1EZNzXD3iG5rWvgTjSoSpWvAwKIZIajfESE2RKz/QyKWSYRyKxQQrSbnDc\r\nJ7fZDqcgWSBGZeSe1gmKQZ0WODV6CsgAD+lyPC5TKxYZhUqSML5QamCnMt8R\r\n2MIYmDlds8XZ/ypaCmx3WZLnud835U8F6Sr8rasfyzo6khi8bAuQUoKDTGsk\r\n85KL6Tmm3Ei9uPI/YI3Fxzc4eYOCQVFEEMYxwl5sGX9t1V1abDMCA75QEgab\r\nGvnqRx+e5dR/EgBq3pSAFQm6pIclo6MvpxwHMpEBLflt19v6B3VQRj8Iq1FK\r\n8T/9EEGARqrsj/rY0lbASGdVsH/zwQS16GC21oXXsHaQHftpE8hBsxcAu2Ge\r\nnNtJ6jRq0nmGEDoa0xCWGZMYQBFSPUeZCPGlwyAkocKAAECyu+e9KEe+gCPR\r\n1kMkFmg6zbbNAQflMgqhV/TnsVDuZMrHQsWPoAJSx79Y8MGnbXpxcKDH4IcT\r\nVVoeOZXNoRA1yx0IAxsVFV40ZNJL2XmtnpL7MNIs8oFe7FSoWvOudeVF0Nv0\r\nw3WeQtgFVZuea9cJsPQ993Y/nc2qTz6iHjc=\r\n=Pe9o\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"directories":{},"maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-prisma-core_1.1.0_1679415655704_0.36062474005278333"},"_hasShrinkwrap":false},"1.1.1":{"name":"@arthurfiorette/jest-prisma-core","version":"1.1.1","main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=14.13"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./index.mjs"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.js"}}},"homepage":"https://github.com/Quramy/jest-prisma","repository":{"type":"git","url":"git+https://github.com/Quramy/jest-prisma.git"},"dependencies":{"chalk":"^4.0.0"},"peerDependencies":{"jest":"^28.0.0 || ^29.0.0"},"scripts":{"bootstrap":"tsc","prepublish":"exit 0","test:ci":"echo \"test\"","test":"echo \"test\""},"keywords":["jest","jest-environment","prisma"],"author":{"name":"Quramy"},"license":"MIT","_id":"@arthurfiorette/jest-prisma-core@1.1.1","gitHead":"2ca00af7c3e11742fef50b38d427e65f198eb4dc","description":"Utility class to build Jest environment for Prisma.","bugs":{"url":"https://github.com/Quramy/jest-prisma/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Mtb6p5JdldqXBPtgx9lHcuY0I3YEB9rc0F7JV8d9hqpuha+353TB0rCGA+2MlfT6bemQxQnj7nOkBoOkDfPUrQ==","shasum":"abbc656ada8666cc5ee8b59b4303eb6d260323e8","tarball":"https://registry.npmjs.org/@arthurfiorette/jest-prisma-core/-/jest-prisma-core-1.1.1.tgz","fileCount":9,"unpackedSize":11936,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFQNk0DdQp2B7mvNguq4mVZmkWl2jdW4fRQ/EWJCHv1MAiAwrlyAjeJRJDJn3/OBfWXnR6Y1VyuQGtlfL3bvR54t5Q=="}]},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"directories":{},"maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-prisma-core_1.1.1_1699753961776_0.8794501890884858"},"_hasShrinkwrap":false},"1.1.2":{"name":"@arthurfiorette/jest-prisma-core","version":"1.1.2","main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=14.13"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./index.mjs"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.js"}}},"homepage":"https://github.com/Quramy/jest-prisma","repository":{"type":"git","url":"git+https://github.com/Quramy/jest-prisma.git"},"dependencies":{"chalk":"^4.0.0"},"peerDependencies":{"jest":"^28.0.0 || ^29.0.0"},"scripts":{"bootstrap":"tsc","prepublish":"exit 0","test:ci":"echo \"test\"","test":"echo \"test\""},"keywords":["jest","jest-environment","prisma"],"author":{"name":"Quramy"},"license":"MIT","_id":"@arthurfiorette/jest-prisma-core@1.1.2","gitHead":"b879a961ea0eecf96a45b71783380cdf8e64e451","description":"Utility class to build Jest environment for Prisma.","bugs":{"url":"https://github.com/Quramy/jest-prisma/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-GEdcTx/7/FjIudevnCEDOipG7T+meULaGBwfcCtwTxF7eIDNm0UT1uQhNkCF5snu9zpGdmzxzPC2oNdadBXfSQ==","shasum":"c24b6036d4776d77454dad91795bf14d82ee108d","tarball":"https://registry.npmjs.org/@arthurfiorette/jest-prisma-core/-/jest-prisma-core-1.1.2.tgz","fileCount":9,"unpackedSize":11734,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAEnqWG1xAYRziyEQAMDTtRkjJ82jQ/ZSe+n9mvXWR/9AiEA8jv6RrhsiNYYT9K33eKW/gpNrfBp57D+mtrQWa8Powk="}]},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"directories":{},"maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-prisma-core_1.1.2_1699850056018_0.19575012919658796"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-01T16:46:52.690Z","1.0.1":"2023-03-01T16:46:52.991Z","modified":"2023-11-13T04:34:16.474Z","1.1.0":"2023-03-21T16:20:55.851Z","1.1.1":"2023-11-12T01:52:41.994Z","1.1.2":"2023-11-13T04:34:16.209Z"},"maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"description":"Utility class to build Jest environment for Prisma.","homepage":"https://github.com/Quramy/jest-prisma","keywords":["jest","jest-environment","prisma"],"repository":{"type":"git","url":"git+https://github.com/Quramy/jest-prisma.git"},"author":{"name":"Quramy"},"bugs":{"url":"https://github.com/Quramy/jest-prisma/issues"},"license":"MIT","readme":"# @arthurfiorette/jest-prisma-core\n\nUtility class to build Jest environment for Prisma.\n\n## Usage\n\n```ts\nimport type { Circus } from \"@jest/types\";\nimport type { JestEnvironmentConfig, EnvironmentContext } from \"@jest/environment\";\nimport { PrismaEnvironmentDelegate } from \"@arthurfiorette/jest-prisma-core\";\n\nimport Environment from \"your-jest-environment\";\n\nexport default class PrismaEnvironment extends Environment {\n  private readonly delegate: PrismaEnvironmentDelegate;\n\n  constructor(config: JestEnvironmentConfig, context: EnvironmentContext) {\n    super(config, context);\n    this.delegate = new PrismaEnvironmentDelegate(config, context);\n  }\n\n  async setup() {\n    const jestPrisma = await this.delegate.preSetup();\n    await super.setup();\n    this.global.jestPrisma = jestPrisma;\n  }\n\n  handleTestEvent(event: Circus.Event) {\n    return this.delegate.handleTestEvent(event);\n  }\n\n  async teardown() {\n    await Promise.all([super.teardown(), this.delegate.teardown()]);\n  }\n}\n```\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md"}