@tramvai/test-child-app 5.9.2 → 5.14.9
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/testChildApp.es.js +2 -3
- package/lib/testChildApp.js +2 -3
- package/package.json +6 -6
package/lib/testChildApp.es.js
CHANGED
|
@@ -11,12 +11,11 @@ global.__webpack_share_scopes__ = { default: { react: {}, 'react-dom': {} } };
|
|
|
11
11
|
// @ts-ignore
|
|
12
12
|
global.setImmediate = (fn) => fn();
|
|
13
13
|
const testChildApp = async (childApp, options = {}) => {
|
|
14
|
-
var _a, _b;
|
|
15
14
|
const testAppInstance = await createTestApp({
|
|
16
15
|
...options,
|
|
17
|
-
modules: [...(
|
|
16
|
+
modules: [...(options.modules ?? []), ChildAppModule],
|
|
18
17
|
providers: [
|
|
19
|
-
...(
|
|
18
|
+
...(options.providers ?? []),
|
|
20
19
|
provide({
|
|
21
20
|
provide: CHILD_APP_RESOLVE_BASE_URL_TOKEN,
|
|
22
21
|
useValue: 'http://test',
|
package/lib/testChildApp.js
CHANGED
|
@@ -15,12 +15,11 @@ global.__webpack_share_scopes__ = { default: { react: {}, 'react-dom': {} } };
|
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
global.setImmediate = (fn) => fn();
|
|
17
17
|
const testChildApp = async (childApp, options = {}) => {
|
|
18
|
-
var _a, _b;
|
|
19
18
|
const testAppInstance = await testUnit.createTestApp({
|
|
20
19
|
...options,
|
|
21
|
-
modules: [...(
|
|
20
|
+
modules: [...(options.modules ?? []), moduleChildApp.ChildAppModule],
|
|
22
21
|
providers: [
|
|
23
|
-
...(
|
|
22
|
+
...(options.providers ?? []),
|
|
24
23
|
core.provide({
|
|
25
24
|
provide: childAppCore.CHILD_APP_RESOLVE_BASE_URL_TOKEN,
|
|
26
25
|
useValue: 'http://test',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-child-app",
|
|
3
|
-
"version": "5.9
|
|
3
|
+
"version": "5.14.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"watch": "tsc -w"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@tramvai/child-app-core": "5.9
|
|
21
|
-
"@tramvai/core": "5.9
|
|
22
|
-
"@tramvai/test-unit": "5.9
|
|
20
|
+
"@tramvai/child-app-core": "5.14.9",
|
|
21
|
+
"@tramvai/core": "5.14.9",
|
|
22
|
+
"@tramvai/test-unit": "5.14.9",
|
|
23
23
|
"tslib": "^2.4.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tramvai/react": "5.9
|
|
26
|
+
"@tramvai/react": "5.14.9",
|
|
27
27
|
"react": "18.2.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@tramvai/module-child-app": "5.9
|
|
30
|
+
"@tramvai/module-child-app": "5.14.9"
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"module": "lib/index.es.js"
|