@mirta/testing 0.4.8 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/setup/global.mjs +6 -0
- package/package.json +5 -5
package/dist/setup/global.mjs
CHANGED
|
@@ -59,6 +59,12 @@ global.runRule = vi.fn();
|
|
|
59
59
|
global.Notify = mock();
|
|
60
60
|
// Мок сервиса оповещения.
|
|
61
61
|
global.Alarms = mock();
|
|
62
|
+
// Мок таймеров.
|
|
63
|
+
global.timers = {};
|
|
64
|
+
// Мок стартера однократного таймера.
|
|
65
|
+
global.startTimer = vi.fn();
|
|
66
|
+
// Мок стартера периодического таймера.
|
|
67
|
+
global.startTicker = vi.fn();
|
|
62
68
|
// Реализация String.prototype.format для тестов
|
|
63
69
|
String.prototype.format = function (...args) {
|
|
64
70
|
let result = '';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirta/testing",
|
|
3
3
|
"description": "A unit-test runner equipped with built-in Wiren Board runtime emulation",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.10",
|
|
5
5
|
"license": "Unlicense",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mirta",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"vitest-mock-extended": "^3.1.0",
|
|
42
|
-
"@mirta/env-loader": "0.4.
|
|
43
|
-
"mirta": "0.4.
|
|
44
|
-
"@mirta/workspace": "0.4.
|
|
42
|
+
"@mirta/env-loader": "0.4.10",
|
|
43
|
+
"mirta": "0.4.10",
|
|
44
|
+
"@mirta/workspace": "0.4.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@mirta/rollup": "0.4.
|
|
47
|
+
"@mirta/rollup": "0.4.10"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build:mono": "rollup -c"
|