@tramvai/test-mocks 2.40.0 → 2.44.2
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/lib/CommonTestModule.d.ts +1 -1
- package/lib/context.d.ts +3 -3
- package/lib/envManager.d.ts +1 -1
- package/package.json +7 -7
|
@@ -2,7 +2,7 @@ import type { Provider } from '@tramvai/core';
|
|
|
2
2
|
import type { Cache } from '@tramvai/tokens-common';
|
|
3
3
|
import { createMockEnvManager } from './envManager';
|
|
4
4
|
import { createMockCookieManager } from './cookie';
|
|
5
|
-
export
|
|
5
|
+
export type CommonModuleOptions = {
|
|
6
6
|
env?: Parameters<typeof createMockEnvManager>[0];
|
|
7
7
|
cookies?: Parameters<typeof createMockCookieManager>[0];
|
|
8
8
|
onCacheCreated?: (cache: Cache) => void;
|
package/lib/context.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { CONTEXT_TOKEN, STORE_TOKEN } from '@tramvai/tokens-common';
|
|
|
2
2
|
import type { Container } from '@tinkoff/dippy';
|
|
3
3
|
import { createMockStore } from './store';
|
|
4
4
|
import { createMockDi } from './di';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type OptionsDi = Parameters<typeof createMockDi>[0];
|
|
6
|
+
type OptionsStore = Parameters<typeof createMockStore>[0];
|
|
7
|
+
type Options = OptionsDi & OptionsStore & {
|
|
8
8
|
store?: typeof STORE_TOKEN;
|
|
9
9
|
di?: Container;
|
|
10
10
|
useTramvaiActionsConditionals?: boolean;
|
package/lib/envManager.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-mocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"build-for-publish": "true"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tramvai/core": "2.
|
|
21
|
+
"@tramvai/core": "2.44.2",
|
|
22
22
|
"@tinkoff/pubsub": "0.5.5",
|
|
23
|
-
"@tinkoff/router": "0.2.
|
|
23
|
+
"@tinkoff/router": "0.2.5",
|
|
24
24
|
"@tinkoff/url": "0.8.4",
|
|
25
|
-
"@tramvai/module-cookie": "2.
|
|
26
|
-
"@tramvai/module-common": "2.
|
|
27
|
-
"@tramvai/state": "2.
|
|
28
|
-
"@tramvai/tokens-common": "2.
|
|
25
|
+
"@tramvai/module-cookie": "2.44.2",
|
|
26
|
+
"@tramvai/module-common": "2.44.2",
|
|
27
|
+
"@tramvai/state": "2.44.2",
|
|
28
|
+
"@tramvai/tokens-common": "2.44.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tinkoff/dippy": "0.8.9",
|