@tramvai/test-unit 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.
@@ -1,5 +1,5 @@
1
1
  import { createApp } from '@tramvai/core';
2
- declare type Options = Partial<Parameters<typeof createApp>[0]> & {
2
+ type Options = Partial<Parameters<typeof createApp>[0]> & {
3
3
  env?: Record<string, string>;
4
4
  excludeDefaultModules?: boolean;
5
5
  };
@@ -26,4 +26,4 @@ export declare const testApp: (appOrAppPromise: App | Promise<App>) => Promise<{
26
26
  mocker: import("@tinkoff/mocker").Mocker | null;
27
27
  close: () => import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
28
28
  }>;
29
- export declare type TestAppResult = PromiseType<ReturnType<typeof testApp>>;
29
+ export type TestAppResult = PromiseType<ReturnType<typeof testApp>>;
@@ -1,6 +1,6 @@
1
1
  import type { ExtendedModule, ModuleType } from '@tramvai/core';
2
2
  import { getDiWrapper } from '@tramvai/test-helpers';
3
- declare type Options = Parameters<typeof getDiWrapper>[0];
3
+ type Options = Parameters<typeof getDiWrapper>[0];
4
4
  /**
5
5
  * Helper for testing tramvai module
6
6
  * @param Module module itself
@@ -1,8 +1,8 @@
1
1
  import type { Action, TramvaiAction } from '@tramvai/core';
2
2
  import type { CONTEXT_TOKEN } from '@tramvai/tokens-common';
3
3
  import { createMockContext } from '@tramvai/test-mocks';
4
- declare type OptionsContext = Parameters<typeof createMockContext>[0];
5
- declare type Options = OptionsContext & {
4
+ type OptionsContext = Parameters<typeof createMockContext>[0];
5
+ type Options = OptionsContext & {
6
6
  context?: typeof CONTEXT_TOKEN;
7
7
  };
8
8
  interface Runner<Params extends any[], Result> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/test-unit",
3
- "version": "2.40.0",
3
+ "version": "2.44.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -18,21 +18,21 @@
18
18
  "build-for-publish": "true"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/cli": "2.40.0",
22
- "@tramvai/core": "2.40.0",
23
- "@tramvai/module-common": "2.40.0",
24
- "@tramvai/module-log": "2.40.0",
25
- "@tramvai/module-metrics": "2.40.0",
26
- "@tramvai/module-mocker": "2.40.0",
27
- "@tramvai/module-render": "2.40.0",
28
- "@tramvai/module-router": "2.40.0",
29
- "@tramvai/module-server": "2.40.0",
30
- "@tramvai/state": "2.40.0",
31
- "@tramvai/test-helpers": "2.40.0",
32
- "@tramvai/test-mocks": "2.40.0",
33
- "@tramvai/tokens-common": "2.40.0",
34
- "@tramvai/tokens-server": "2.40.0",
35
- "@tramvai/tokens-server-private": "2.40.0",
21
+ "@tramvai/cli": "2.44.2",
22
+ "@tramvai/core": "2.44.2",
23
+ "@tramvai/module-common": "2.44.2",
24
+ "@tramvai/module-log": "2.44.2",
25
+ "@tramvai/module-metrics": "2.44.2",
26
+ "@tramvai/module-mocker": "2.44.2",
27
+ "@tramvai/module-render": "2.44.2",
28
+ "@tramvai/module-router": "2.44.2",
29
+ "@tramvai/module-server": "2.44.2",
30
+ "@tramvai/state": "2.44.2",
31
+ "@tramvai/test-helpers": "2.44.2",
32
+ "@tramvai/test-mocks": "2.44.2",
33
+ "@tramvai/tokens-common": "2.44.2",
34
+ "@tramvai/tokens-server": "2.44.2",
35
+ "@tramvai/tokens-server-private": "2.44.2",
36
36
  "utility-types": "^3.10.0"
37
37
  },
38
38
  "peerDependencies": {