Slonik transaction support for Mocha test framework ☕️🐘
BSD-2-CLAUSE License
Bot releases are hidden (Show)
Published by AndrewJo over 1 year ago
mocha-slonik will no longer compile with slonik version < 33.1.1
fix: always call .end()
on PgClient setup instance
fix: use end method from PgPool
refactor: remove processID in debug logs
chore(deps): update dev dependency to 33.3.1
chore(deps): update sinon v15.0.2
chore(ci): test against slonik 33.3.1
docs: update version compatibility chart
Published by AndrewJo almost 2 years ago
createPool
is now an async functionPublished by AndrewJo almost 2 years ago
Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.1.0...v4.2.0
Published by AndrewJo over 2 years ago
^27.0.0 || ^28.0.0
Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.0.1...v4.1.0
Published by AndrewJo over 2 years ago
Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.0.0...v4.0.1
Published by AndrewJo almost 3 years ago
Published by AndrewJo almost 3 years ago
createPool
factory function reflects breaking changes in slonik and no longer extends PgPool in addition to removing support for native native pg driver supportPublished by AndrewJo almost 3 years ago
transactionRetryLimit
argument in the transaction
function (bdf8261)Published by AndrewJo almost 3 years ago
currentTransaction
getter property that returns the global DatabaseTransactionConnectionType
object.DatabasePoolType
vs Slonik versionPublished by AndrewJo almost 3 years ago
main
field of package.json
to point to compiled JavaScript file in dist/index.js
Published by AndrewJo almost 3 years ago
createPool
factory method that returns the custom bound pool object with rollback
method.createPool
in tests that require better control over when to apply rollbacks.Special thanks to @gajus for suggesting the factory design pattern!
Published by AndrewJo about 3 years ago
mocha-slonik/register
module for registering global test hooks in Mochamocha-slonik/bindPoolMock
class for overriding Slonik's bindPool function