infinite loop when using jest.userFakeTimers() before when using typeOrm by pg-mem
(Describe your issue here).
When I try to use jest.useFakeTimers().setSystemTime(new Date())
before I save() or find() typeOrm of pg-mem
it loops in the maximum delay time in cli.js
var ITERATOR = __webpack_require__(44)('iterator');
var SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function () { SAFE_CLOSING = true; };
// eslint-disable-next-line no-throw-literal
Array.from(riter, function () { throw 2; }); <-- debug point
} catch (e) { / empty / }```
To Reproduce
not query related
pg-mem version
2.8.1 (paste your pg-mem version here)
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)
Describe the bug
infinite loop when using jest.userFakeTimers() before when using typeOrm by pg-mem
(Describe your issue here). When I try to use jest.useFakeTimers().setSystemTime(new Date()) before I save() or find() typeOrm of pg-mem it loops in the maximum delay time in cli.js
and the debugger goes to this function
// }), / 333 / // (function(module, exports, __webpack_require__) {
var ITERATOR = __webpack_require__(44)('iterator'); var SAFE_CLOSING = false;
try { var riter = [7][ITERATOR](); riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal Array.from(riter, function () { throw 2; }); <-- debug point } catch (e) { / empty / }```
To Reproduce
pg-mem version
2.8.1 (paste your pg-mem version here)
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)