@pih/esm-referrals-queue-app 2.1.1-pre.2 → 2.1.1-pre.3
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.
|
@@ -295,9 +295,9 @@
|
|
|
295
295
|
"entry": false,
|
|
296
296
|
"recorded": false,
|
|
297
297
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
298
|
-
"size":
|
|
298
|
+
"size": 3610553,
|
|
299
299
|
"sizes": {
|
|
300
|
-
"javascript":
|
|
300
|
+
"javascript": 1099021,
|
|
301
301
|
"asset": 2511532
|
|
302
302
|
},
|
|
303
303
|
"names": [],
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
"fbebeb4336e67012.woff2",
|
|
495
495
|
"fd522cd7a5c646fe.woff"
|
|
496
496
|
],
|
|
497
|
-
"hash": "
|
|
497
|
+
"hash": "80065727bdb3bfcf",
|
|
498
498
|
"childrenByOrder": {}
|
|
499
499
|
},
|
|
500
500
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"root","route":"referrals-queue"}],"version":"2.1.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"root","route":"referrals-queue"}],"version":"2.1.1-pre.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pih/esm-referrals-queue-app",
|
|
3
|
-
"version": "2.1.1-pre.
|
|
3
|
+
"version": "2.1.1-pre.3",
|
|
4
4
|
"description": "A page for viewing the J9 Home Visits from CommCare",
|
|
5
5
|
"browser": "dist/pih-esm-referrals-queue-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"start": "openmrs develop",
|
|
12
12
|
"serve": "webpack serve --mode=development",
|
|
13
|
+
"debug": "npm run serve",
|
|
13
14
|
"build": "webpack --mode production",
|
|
14
15
|
"analyze": "webpack --mode=production --env.analyze=true",
|
|
15
|
-
"lint": "eslint src --ext
|
|
16
|
-
"
|
|
16
|
+
"lint": "cross-env eslint src --ext ts,tsx",
|
|
17
|
+
"test": "cross-env TZ=UTC jest --config jest.config.js --verbose false --passWithNoTests --color",
|
|
18
|
+
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
|
|
19
|
+
"coverage": "yarn test --coverage",
|
|
17
20
|
"typescript": "tsc",
|
|
18
|
-
"
|
|
19
|
-
"coverage": "yarn test -- --coverage",
|
|
20
|
-
"prepare": "husky install"
|
|
21
|
+
"extract-translations": "i18next 'src/**/*.component.tsx'"
|
|
21
22
|
},
|
|
22
23
|
"browserslist": [
|
|
23
24
|
"extends browserslist-config-openmrs"
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { defineConfigSchema } from '@openmrs/esm-framework';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { of } from 'rxjs';
|
|
3
4
|
import { render, fireEvent, screen, within, waitFor } from '@testing-library/react';
|
|
4
5
|
import MockDate from 'mockdate';
|
|
5
6
|
import ReferralsQueue from './referrals-queue.component';
|
|
6
7
|
import { getReferrals } from './referrals-queue.resource';
|
|
8
|
+
import { configSchema } from '../config-schema';
|
|
7
9
|
|
|
8
10
|
jest.mock('./referrals-queue.resource');
|
|
9
11
|
const mockedGetReferrals = getReferrals as jest.Mock;
|
|
@@ -55,6 +57,9 @@ window.location = { href: '/referrals-queue' };
|
|
|
55
57
|
|
|
56
58
|
describe('referrals queue', () => {
|
|
57
59
|
const todayString = '2020-10-31';
|
|
60
|
+
beforeAll(() => {
|
|
61
|
+
defineConfigSchema('@pih/esm-referral-queues-app', configSchema);
|
|
62
|
+
});
|
|
58
63
|
beforeEach(() => {
|
|
59
64
|
MockDate.set(todayString + 'T10:00:00.000-0400');
|
|
60
65
|
mockedGetReferrals.mockReset();
|