You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: