core: add mockdate package

This commit is contained in:
Abdullah Atta
2022-12-26 13:14:17 +05:00
committed by Abdullah Atta
parent 2467b57a2e
commit 07ebbf622d
2 changed files with 22 additions and 5 deletions

View File

@@ -40,7 +40,8 @@
"eventsource": "^2.0.2",
"jest": "^28.1.3",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^20.0.0"
"jsdom": "^20.0.0",
"mockdate": "^3.0.5"
}
},
"node_modules/@ampproject/remapping": {
@@ -8148,6 +8149,12 @@
"mkdirp": "bin/cmd.js"
}
},
"node_modules/mockdate": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/mockdate/-/mockdate-3.0.5.tgz",
"integrity": "sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==",
"dev": true
},
"node_modules/moo": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz",
@@ -15225,7 +15232,8 @@
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
"integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
"dev": true
"dev": true,
"requires": {}
},
"jest-regex-util": {
"version": "28.0.2",
@@ -15899,7 +15907,8 @@
"version": "8.11.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz",
"integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==",
"dev": true
"dev": true,
"requires": {}
}
}
},
@@ -16099,6 +16108,12 @@
"minimist": "^1.2.6"
}
},
"mockdate": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/mockdate/-/mockdate-3.0.5.tgz",
"integrity": "sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==",
"dev": true
},
"moo": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz",
@@ -17136,7 +17151,8 @@
"ws": {
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q=="
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
"requires": {}
},
"xml-name-validator": {
"version": "4.0.0",

View File

@@ -26,7 +26,8 @@
"eventsource": "^2.0.2",
"jest": "^28.1.3",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^20.0.0"
"jsdom": "^20.0.0",
"mockdate": "^3.0.5"
},
"scripts": {
"test:e2e": "env-cmd -e e2e jest --forceExit",