@tramvai/test-react 2.40.0 → 2.45.0

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.
@@ -4,10 +4,10 @@ import type { CONTEXT_TOKEN } from '@tramvai/tokens-common';
4
4
  import type { AbstractRouter } from '@tinkoff/router';
5
5
  import type { createMockDi } from '@tramvai/test-mocks';
6
6
  import { createMockContext, createMockRouter } from '@tramvai/test-mocks';
7
- declare type OptionsDi = Parameters<typeof createMockDi>[0];
8
- declare type OptionsContext = Parameters<typeof createMockContext>[0];
9
- declare type OptionsRouter = Parameters<typeof createMockRouter>[0];
10
- declare type Options = OptionsDi & OptionsContext & OptionsRouter & {
7
+ type OptionsDi = Parameters<typeof createMockDi>[0];
8
+ type OptionsContext = Parameters<typeof createMockContext>[0];
9
+ type OptionsRouter = Parameters<typeof createMockRouter>[0];
10
+ type Options = OptionsDi & OptionsContext & OptionsRouter & {
11
11
  context?: typeof CONTEXT_TOKEN;
12
12
  router?: AbstractRouter;
13
13
  renderOptions?: RenderOptions;
package/lib/testHook.d.ts CHANGED
@@ -3,10 +3,10 @@ import type { CONTEXT_TOKEN } from '@tramvai/tokens-common';
3
3
  import type { AbstractRouter } from '@tinkoff/router';
4
4
  import type { createMockDi } from '@tramvai/test-mocks';
5
5
  import { createMockContext, createMockRouter } from '@tramvai/test-mocks';
6
- declare type OptionsDi = Parameters<typeof createMockDi>[0];
7
- declare type OptionsContext = Parameters<typeof createMockContext>[0];
8
- declare type OptionsRouter = Parameters<typeof createMockRouter>[0];
9
- declare type Options = OptionsDi & OptionsContext & OptionsRouter & {
6
+ type OptionsDi = Parameters<typeof createMockDi>[0];
7
+ type OptionsContext = Parameters<typeof createMockContext>[0];
8
+ type OptionsRouter = Parameters<typeof createMockRouter>[0];
9
+ type Options = OptionsDi & OptionsContext & OptionsRouter & {
10
10
  context?: typeof CONTEXT_TOKEN;
11
11
  router?: AbstractRouter;
12
12
  renderOptions?: RenderHookOptions<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/test-react",
3
- "version": "2.40.0",
3
+ "version": "2.45.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@testing-library/react": "^13.3.0",
22
- "@tinkoff/router": "0.2.4",
23
- "@tramvai/react": "2.40.0",
24
- "@tramvai/state": "2.40.0",
25
- "@tramvai/test-jsdom": "2.40.0",
26
- "@tramvai/test-mocks": "2.40.0",
27
- "@tramvai/tokens-common": "2.40.0",
22
+ "@tinkoff/router": "0.2.5",
23
+ "@tramvai/react": "2.45.0",
24
+ "@tramvai/state": "2.45.0",
25
+ "@tramvai/test-jsdom": "2.45.0",
26
+ "@tramvai/test-mocks": "2.45.0",
27
+ "@tramvai/tokens-common": "2.45.0",
28
28
  "tslib": "^2.4.0"
29
29
  },
30
30
  "peerDependencies": {