@tramvai/test-unit 1.84.2 → 1.90.1

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.
@@ -16,8 +16,8 @@ export declare const testApp: (appOrAppPromise: App | Promise<App>) => Promise<{
16
16
  } | undefined) => Promise<{
17
17
  initialState: any;
18
18
  parsed: import("node-html-parser").HTMLElement;
19
- head: string;
20
19
  body: string;
20
+ head: string;
21
21
  application: string;
22
22
  }>;
23
23
  mocker: import("@tinkoff/mocker").Mocker | null;
package/lib/index.es.js CHANGED
@@ -12,7 +12,8 @@ import { ServerModule, SERVER_TOKEN } from '@tramvai/module-server';
12
12
  import { LogModule } from '@tramvai/module-log';
13
13
  import { MockerModule, MOCKER } from '@tramvai/module-mocker';
14
14
  import { MetricsModule as MetricsModule$1 } from '@tramvai/module-metrics';
15
- import { WEB_APP_TOKEN, SERVER_TOKEN as SERVER_TOKEN$1 } from '@tramvai/tokens-server';
15
+ import { SERVER_TOKEN as SERVER_TOKEN$1 } from '@tramvai/tokens-server';
16
+ import { WEB_FASTIFY_APP_TOKEN } from '@tramvai/tokens-server-private';
16
17
 
17
18
  /**
18
19
  * Helper for testing actions
@@ -136,7 +137,7 @@ const createTestApp = async ({ name = 'testApp', bundles = {}, providers = [], m
136
137
  */
137
138
  const testApp = async (appOrAppPromise) => {
138
139
  const app = await appOrAppPromise;
139
- const request = requestFactory(app.di.get(WEB_APP_TOKEN));
140
+ const request = requestFactory(app.di.get(WEB_FASTIFY_APP_TOKEN));
140
141
  const mockerModule = getModuleParameters(MockerModule);
141
142
  mockerModule.providers.forEach((provider) => {
142
143
  app.di.register(provider);
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ var moduleLog = require('@tramvai/module-log');
17
17
  var moduleMocker = require('@tramvai/module-mocker');
18
18
  var moduleMetrics = require('@tramvai/module-metrics');
19
19
  var tokensServer = require('@tramvai/tokens-server');
20
+ var tokensServerPrivate = require('@tramvai/tokens-server-private');
20
21
 
21
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
23
 
@@ -145,7 +146,7 @@ const createTestApp = async ({ name = 'testApp', bundles = {}, providers = [], m
145
146
  */
146
147
  const testApp = async (appOrAppPromise) => {
147
148
  const app = await appOrAppPromise;
148
- const request = testHelpers.requestFactory(app.di.get(tokensServer.WEB_APP_TOKEN));
149
+ const request = testHelpers.requestFactory(app.di.get(tokensServerPrivate.WEB_FASTIFY_APP_TOKEN));
149
150
  const mockerModule = core.getModuleParameters(moduleMocker.MockerModule);
150
151
  mockerModule.providers.forEach((provider) => {
151
152
  app.di.register(provider);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/test-unit",
3
- "version": "1.84.2",
3
+ "version": "1.90.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -18,20 +18,21 @@
18
18
  "build-for-publish": "true"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/cli": "1.84.2",
22
- "@tramvai/core": "1.84.2",
23
- "@tramvai/module-common": "1.84.2",
24
- "@tramvai/module-log": "1.84.2",
25
- "@tramvai/module-metrics": "1.84.2",
26
- "@tramvai/module-mocker": "1.84.2",
27
- "@tramvai/module-render": "1.84.2",
28
- "@tramvai/module-router": "1.84.2",
29
- "@tramvai/module-server": "1.84.2",
30
- "@tramvai/state": "1.84.2",
31
- "@tramvai/test-helpers": "1.84.2",
32
- "@tramvai/test-mocks": "1.84.2",
33
- "@tramvai/tokens-common": "1.84.2",
34
- "@tramvai/tokens-server": "1.84.2",
21
+ "@tramvai/cli": "1.90.1",
22
+ "@tramvai/core": "1.90.1",
23
+ "@tramvai/module-common": "1.90.1",
24
+ "@tramvai/module-log": "1.90.1",
25
+ "@tramvai/module-metrics": "1.90.1",
26
+ "@tramvai/module-mocker": "1.90.1",
27
+ "@tramvai/module-render": "1.90.1",
28
+ "@tramvai/module-router": "1.90.1",
29
+ "@tramvai/module-server": "1.90.1",
30
+ "@tramvai/state": "1.90.1",
31
+ "@tramvai/test-helpers": "1.90.1",
32
+ "@tramvai/test-mocks": "1.90.1",
33
+ "@tramvai/tokens-common": "1.90.1",
34
+ "@tramvai/tokens-server": "1.90.1",
35
+ "@tramvai/tokens-server-private": "1.90.1",
35
36
  "utility-types": "^3.10.0"
36
37
  },
37
38
  "peerDependencies": {