@openmrs/esm-react-utils 3.3.2-pre.33 → 4.0.0-pre.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.
- package/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-test.log +45 -0
- package/dist/openmrs-esm-react-utils.js +1 -1
- package/dist/openmrs-esm-react-utils.js.LICENSE.txt +0 -0
- package/dist/openmrs-esm-react-utils.js.map +1 -1
- package/jest.config.js +4 -0
- package/package.json +18 -18
- package/src/ConfigurableLink.test.tsx +6 -4
- package/src/UserHasAccess.tsx +1 -0
- package/src/openmrsComponentDecorator.tsx +2 -1
- package/src/useLayoutType.ts +8 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
[36m@openmrs/esm-react-utils:build: [0mcache hit, replaying output [
|
|
1
|
+
[36m@openmrs/esm-react-utils:build: [0mcache hit, replaying output [2m0c37925968aa9658[0m
|
|
2
2
|
[36m@openmrs/esm-react-utils:build: [0m$ webpack --mode=production
|
|
3
|
-
[36m@openmrs/esm-react-utils:build: [0masset
|
|
4
|
-
[36m@openmrs/esm-react-utils:build: [0morphan modules 192 KiB
|
|
3
|
+
[36m@openmrs/esm-react-utils:build: [0masset openmrs-esm-react-utils.js 138 KiB [emitted] [minimized] (name: main) 2 related assets
|
|
4
|
+
[36m@openmrs/esm-react-utils:build: [0morphan modules 192 KiB [orphan] 120 modules
|
|
5
5
|
[36m@openmrs/esm-react-utils:build: [0mruntime modules 2.14 KiB 8 modules
|
|
6
|
-
[36m@openmrs/esm-react-utils:build: [0mbuilt modules 736 KiB
|
|
6
|
+
[36m@openmrs/esm-react-utils:build: [0mbuilt modules 736 KiB [built]
|
|
7
7
|
[36m@openmrs/esm-react-utils:build: [0m cacheable modules 736 KiB
|
|
8
|
-
[36m@openmrs/esm-react-utils:build: [0m modules by path
|
|
9
|
-
[36m@openmrs/esm-react-utils:build: [0m
|
|
10
|
-
[36m@openmrs/esm-react-utils:build: [0m
|
|
11
|
-
[36m@openmrs/esm-react-utils:build: [0m modules by path
|
|
12
|
-
[36m@openmrs/esm-react-utils:build: [0m
|
|
13
|
-
[36m@openmrs/esm-react-utils:build: [0m
|
|
8
|
+
[36m@openmrs/esm-react-utils:build: [0m modules by path ../../../node_modules/ 535 KiB 5 modules
|
|
9
|
+
[36m@openmrs/esm-react-utils:build: [0m ./src/index.ts + 120 modules 193 KiB [built] [code generated]
|
|
10
|
+
[36m@openmrs/esm-react-utils:build: [0m ../esm-state/dist/openmrs-esm-state.js 7.52 KiB [built] [code generated]
|
|
11
|
+
[36m@openmrs/esm-react-utils:build: [0m modules by path external "@openmrs/ 168 bytes
|
|
12
|
+
[36m@openmrs/esm-react-utils:build: [0m external "@openmrs/esm-config" 42 bytes [built] [code generated]
|
|
13
|
+
[36m@openmrs/esm-react-utils:build: [0m external "@openmrs/esm-extensions" 42 bytes [built] [code generated]
|
|
14
14
|
[36m@openmrs/esm-react-utils:build: [0m + 2 modules
|
|
15
15
|
[36m@openmrs/esm-react-utils:build: [0m + 5 modules
|
|
16
|
-
[36m@openmrs/esm-react-utils:build: [0mwebpack 5.70.0 compiled
|
|
16
|
+
[36m@openmrs/esm-react-utils:build: [0mwebpack 5.70.0 compiled successfully in 6833 ms
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[32m@openmrs/esm-react-utils:test: [0mcache hit, replaying output [2mc183110feface1ab[0m
|
|
2
|
+
[32m@openmrs/esm-react-utils:test: [0m$ jest --passWithNoTests
|
|
3
|
+
[32m@openmrs/esm-react-utils:test: [0mPASS src/useOnClickOutside.test.tsx
|
|
4
|
+
[32m@openmrs/esm-react-utils:test: [0mPASS src/useSession.test.tsx
|
|
5
|
+
[32m@openmrs/esm-react-utils:test: [0mPASS src/openmrsComponentDecorator.test.tsx (5.18 s)
|
|
6
|
+
[32m@openmrs/esm-react-utils:test: [0mPASS src/useConfig.test.tsx (6 s)
|
|
7
|
+
[32m@openmrs/esm-react-utils:test: [0m ● Console
|
|
8
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
9
|
+
[32m@openmrs/esm-react-utils:test: [0m console.error
|
|
10
|
+
[32m@openmrs/esm-react-utils:test: [0m Warning: An update to RenderConfig inside a test was not wrapped in act(...).
|
|
11
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
12
|
+
[32m@openmrs/esm-react-utils:test: [0m When testing, code that causes React state updates should be wrapped into act(...):
|
|
13
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
14
|
+
[32m@openmrs/esm-react-utils:test: [0m act(() => {
|
|
15
|
+
[32m@openmrs/esm-react-utils:test: [0m /* fire events that update state */
|
|
16
|
+
[32m@openmrs/esm-react-utils:test: [0m });
|
|
17
|
+
[32m@openmrs/esm-react-utils:test: [0m /* assert on the output */
|
|
18
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
19
|
+
[32m@openmrs/esm-react-utils:test: [0m This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
|
|
20
|
+
[32m@openmrs/esm-react-utils:test: [0m at RenderConfig (/home/brandon/Code/pih/mf/openmrs-esm-core/packages/framework/esm-react-utils/src/useConfig.test.tsx:18:29)
|
|
21
|
+
[32m@openmrs/esm-react-utils:test: [0m at Suspense
|
|
22
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
23
|
+
[32m@openmrs/esm-react-utils:test: [0m 85 | return store?.subscribe((state) => {
|
|
24
|
+
[32m@openmrs/esm-react-utils:test: [0m 86 | if (state.loaded && state.config) {
|
|
25
|
+
[32m@openmrs/esm-react-utils:test: [0m > 87 | setState(state.config);
|
|
26
|
+
[32m@openmrs/esm-react-utils:test: [0m | ^
|
|
27
|
+
[32m@openmrs/esm-react-utils:test: [0m 88 | }
|
|
28
|
+
[32m@openmrs/esm-react-utils:test: [0m 89 | });
|
|
29
|
+
[32m@openmrs/esm-react-utils:test: [0m 90 | }, [store]);
|
|
30
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
31
|
+
[32m@openmrs/esm-react-utils:test: [0m at printWarning (../../../node_modules/react-dom/cjs/react-dom.development.js:86:30)
|
|
32
|
+
[32m@openmrs/esm-react-utils:test: [0m at error (../../../node_modules/react-dom/cjs/react-dom.development.js:60:7)
|
|
33
|
+
[32m@openmrs/esm-react-utils:test: [0m at warnIfUpdatesNotWrappedWithActDEV (../../../node_modules/react-dom/cjs/react-dom.development.js:27543:9)
|
|
34
|
+
[32m@openmrs/esm-react-utils:test: [0m at scheduleUpdateOnFiber (../../../node_modules/react-dom/cjs/react-dom.development.js:25404:5)
|
|
35
|
+
[32m@openmrs/esm-react-utils:test: [0m at dispatchSetState (../../../node_modules/react-dom/cjs/react-dom.development.js:17389:16)
|
|
36
|
+
[32m@openmrs/esm-react-utils:test: [0m at Array.setState (src/useConfig.ts:87:9)
|
|
37
|
+
[32m@openmrs/esm-react-utils:test: [0m at Object.e (../../../node_modules/unistore/src/index.js:16:19)
|
|
38
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
39
|
+
[32m@openmrs/esm-react-utils:test: [0mPASS src/ConfigurableLink.test.tsx (9.494 s)
|
|
40
|
+
[32m@openmrs/esm-react-utils:test: [0m
|
|
41
|
+
[32m@openmrs/esm-react-utils:test: [0mTest Suites: 5 passed, 5 total
|
|
42
|
+
[32m@openmrs/esm-react-utils:test: [0mTests: 19 passed, 19 total
|
|
43
|
+
[32m@openmrs/esm-react-utils:test: [0mSnapshots: 0 total
|
|
44
|
+
[32m@openmrs/esm-react-utils:test: [0mTime: 13.693 s
|
|
45
|
+
[32m@openmrs/esm-react-utils:test: [0mRan all test suites.
|