Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.dateFormatReducer.test.js
- Test Suites: console.error1 failed , node_modules\prop-types\factoryWithTypeCheckers.js:21
- 41 passed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- PASS tests\actions\encounterRole.test.js
- fetchEncounterRole action
- √ creates FETCH_ENCOUNTER_ROLE_LOADING and FETCH_ENCOUNTER_ROLE_SUCCESS
- action types upon success response from server (11ms)
- RUNS tests/actions/draftTableAction.test.js
- RUNS tests/actions/encounterRole.test.js
- RUNS tests/reducers/settingEncounterRoleReducer.test.js
- RUNS tests/reducers/dateFormatReducer.test.js
- Test Suites: 1 failed, 41 passed, 42 of 67 total
- Tests: 3 failed, 2 skipped, 223 passed, 228 total
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21y of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/actions/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.draftTableAction.test.js
- RUNS tests/reducers/settingEncounterRoleReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/actions/
- activeOrderAction.test.js
- RUNS tests/reducers/dateFormatReducer.test.js
- console.errorTest Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- PASS tests\reducers\settingEncounterRoleReducer.test.js
- Setting Encounter Tole reducer
- √ should return the initial state (1ms)
- √ Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/actions/
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- settingEncounterRoleReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- activeOrderAction.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- dateFormatReducer.test.js
- console.errorTest Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- √ should handle `SETTING_ENCOUNTER_ROLE_SUCCESS` (1ms)
- √ should handle `SETTING_ENCOUNTER_ROLE_FAILURE`
- √ should set the loading status for the encounter role (1ms)
- PASS tests\reducers\dateFormatReducer.test.js
- Date Format Reducer
- √ should set the state of a successful added date format (1ms)
- √ should return an error (4ms)
- PASS tests\actions\draftTableAction.test.js
- Discontinue Order Actions
- √ should dispatch ADD_DRAFT_DRUG_ORDER_SUCCESS successfully (4ms)
- √ should dispatch DELETE_DRAFT_DRUG_ORDER_SUCCESS successfully (1ms)
- √ should dispatch DELETE_ALL_DRAFT_DRUG_ORDERS_SUCCESS successfully (2ms)
- RUNS tests/actions/draftTableAction.test.js
- RUNS tests/actions/orderEntryActions.test.js
- RUNS tests/components/tabs/DosageTab.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/actions/ orderEntryActions.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/components/tabs/ DosageTab.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/actions/ activeOrderAction.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ createOrderReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- PASS tests\actions\activeOrderAction.test.jss\prop-types\factoryWithTypeCheckers.js:21, 46 of 67 total
- activeOrder action
- √ should fetch active orders successfully (19ms)
- RUNS tests/actions/orderEntryActions.test.js
- RUNS tests/components/tabs/DosageTab.test.js
- RUNS tests/actions/activeOrderAction.test.js
- RUNS tests/reducers/createOrderReducer.test.js
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2. RUNS
- console.errortests/reducers/ orderSelectionReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
- tests/actions/console.errororderEntryActions.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/components/tabs/console.errorDosageTab.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errorcreateOrderReducer.test.js
- Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:21
- 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- 46 passedconsole.error, 47 of 67 total
- Tests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- , console.error235 passed , 240 total
- node_modules\prop-types\factoryWithTypeCheckers.js:21Snapshots:
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.1 failed
- 18 passedconsole.error, 19 total
- PASS tests\actions\orderEntryActions.test.jsheckers.js:21
- getOrderEntryConfigurations action
- √ creates FETCH_ORDER_CONFIG_LOADING and FETCH_ORDER_CONFIG_SUCCESS
- action types upon success response from server (9ms)
- RUNS tests/reducers/orderSelectionReducer.test.js
- RUNS tests/components/tabs/DosageTab.test.js
- RUNS tests/reducers/fetchOrdersReducer.test.js
- RUNS tests/reducers/createOrderReducer.test.js
- Test Suites: 1 failed, 47 passed, 48 of 67 total
- Tests: 3 failed, 2 skipped, 236 passed, 241 total
- Snapshots: 1 failed, 18 passed, 19 total
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- PASS tests\components\tabs\DosageTab.test.jsyWithTypeCheckers.js:21
- Dosage Tab component
- √ should render without crashing (4ms)
- √ should render the standard form (2ms)
- √ should render the free text form (3ms)
- Test click events
- √ should trigger event when clicked (7ms)
- PASS tests\reducers\createOrderReducer.test.js
- createOrder reducer test suite
- √ sets status key error to true and sets key errorMessage to
- error message from payload on action type SAVE_DRAFT_LAB_ORDER_FAILURE (2ms)
- √ parses data from payload to key labOrderData and sets staus key
- added to true on action type SAVE_DRAFT_LAB_ORDER_SUCCESS (1ms)
- √ returns initial state if action type is not handled (1ms)
- √ should handle SAVE_DRAFT_LAB_ORDER_LOADING (1ms)
- RUNS tests/reducers/orderSelectionReducer.test.js
- RUNS tests/reducers/labOrderReducers/settingLabOrderableReducer.test.js
- RUNS tests/reducers/fetchOrdersReducer.test.js
- RUNS tests/reducers/createOrderReducer.test.js
- Test Suites: 1 failed, 48 passed, 49 of 67 total
- Tests: 3 failed, 2 skipped, 240 passed, 245 total
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.tests/reducers/
- PASS tests\reducers\orderSelectionReducer.test.js
- orderSelectionReducer Reducer
- √ should return the state as default when action is not triggered (1ms)
- SET_SELECTED_ORDER
- √ set the state with provided data (2ms)
- RUNS tests/reducers/orderSelectionReducer.test.js
- RUNS tests/reducers/labOrderReducers/settingLabOrderableReducer.test.js
- RUNS tests/reducers/settingEncounterTypeReducer.test.js
- RUNS tests/reducers/fetchOrdersReducer.test.js
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/labOrderReducers/
- settingLabOrderableReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- settingEncounterTypeReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- fetchOrdersReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- createOrder.test.js
- PASS tests\reducers\fetchOrdersReducer.test.jses\factoryWithTypeCheckers.js:211 failed
- fetchorders reducer test-suite
- FETCH_ORDERS_LOADING (2ms)console.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/labOrderReducers/ settingLabOrderableReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- settingEncounterTypeReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/ fetchOrdersReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/actions/ createOrder.test.jsconsole.error
- Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- , 51 of 67 total
- console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- √ sets status key fetched to true and parses data from payload
- to Orders key on FETCH_ORDERS_SUCCESS (1ms)
- √ sets status key error to true and parses errormessage from
- payload to key errorMessage on FETCH_ORDERS_FAILURE (1ms)
- √ filters the data in the results array upon action type SORT_AND_FILTER (2ms)
- √ filters from the original data if the filter array is empty (2ms)
- √ returns all the data if sortQuery value is all and sortBy is type (2ms)
- √ returns initial state if action type is not handled
- √ should remove a discontinued active order from the state (1ms)
- tests/reducers/ patientReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/labOrderReducers/ settingLabOrderableReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/ settingEncounterTypeReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/actions/ createOrder.test.jsconsole.error
- Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- , 52 of 67 total
- console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- , console.error254 passed , 259 total
- node_modules\prop-types\factoryWithTypeCheckers.js:21Snapshots:
- PASS tests\reducers\labOrderReducers\settingLabOrderableReducer.test.js check functions, but received undefined at index 2.1 failed
- getting Lab Orderable reducer
- √ should return the initial state (2ms)
- √ should handle `GET_LAB_ORDERABLES_LOADING` (1ms)
- √ should handle `GET_LAB_ORDERABLES_SUCCESS` (1ms)
- √ should handle `GET_LAB_ORDERABLES_FAILURE` (1ms)
- PASS tests\reducers\settingEncounterTypeReducer.test.js
- Setting Encounter Type reducer
- √ should return the initial state (2ms)
- √ should handle `SETTING_ENCOUNTER_TYPE_LOADING` (1ms)
- √ should handle `SETTING_ENCOUNTER_TYPE_SUCCESS` (1ms)
- √ should handle `SETTING_ENCOUNTER_TYPE_FAILURE` (1ms)
- RUNS tests/reducers/patientReducer.test.js
- RUNS tests/reducers/settingEncounterTypeReducer.test.js
- RUNS tests/reducers/orderEntryReducer.test.js
- RUNS tests/actions/createOrder.test.js
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- noteReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- orderEntryReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- createOrder.test.js
- PASS tests\actions\createOrder.test.jsmodules\prop-types\factoryWithTypeCheckers.js:21
- createOrder action
- √ should save orders successfully (8ms)
- RUNS tests/reducers/patientReducer.test.js
- RUNS tests/reducers/noteReducer.test.js
- RUNS tests/reducers/orderEntryReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ patientReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ noteReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ locationReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ orderEntryReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- PASS tests\reducers\patientReducer.test.js7 total
- Patient Reducer
- RUNS tests/reducers/patientReducer.test.js
- RUNS tests/reducers/noteReducer.test.js
- RUNS tests/reducers/locationReducer.test.js
- RUNS tests/reducers/orderEntryReducer.test.js
- Test Suites: 1 failed, 54 passed, 55 of 67 total
- 263 passed , 268 total
- console.errorSnapshots: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- √ console.errorset state to initial state when no new state is passed (2ms)unctions, but received undefined at index 2.
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errorpatientReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errornoteReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/locationReducer.test.js
- SET_PATIENT RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- √ set the patient with provided data (2ms)
- √ set the patient to empty array if the request fails (1ms)
- PASS tests\reducers\orderEntryReducer.test.js
- Order Entry Configurations reducer
- √ should return the initial state (2ms)
- √ should handle `FETCH_ORDER_CONFIG_SUCCESS` (2ms)
- RUNS tests/reducers/noteReducer.test.js
- RUNS tests/reducers/locationReducer.test.js
- RUNS tests/reducers/orderEntryReducer.test.js
- RUNS tests/reducers/labOrderReducers/fetchLabOrderReducer.test.js
- Test Suites: 1 failed, 55 passed, 56 of 67 total
- , 271 total
- Snapshots: console.error1 failed node_modules\prop-types\factoryWithTypeCheckers.js:21,
- √ should handle `FETCH_ORDER_CONFIG_FAILURE` (1ms)xpected an array of check functions, but received undefined at index 2.21 passed
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
- noteReducer.test.js Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- locationReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/orderEntryReducer.test.js
- RUNS tests/reducers/labOrderReducers/console.errorfetchLabOrderReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21Test Suites:
- 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- √ should set the loading status for fetching the order entry configuration (1ms)
- PASS tests\reducers\noteReducer.test.js
- Note Reducer
- √ set state to initial state when no new state is passed (1ms)
- SET_NOTE
- √ set the patient with provided data (2ms)
- RUNS tests/reducers/encounterRoleReducer.test.js
- RUNS tests/reducers/noteReducer.test.js
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/labOrderReducers/
- Test Suites: console.error 1 failednode_modules\prop-types\factoryWithTypeCheckers.js:21
- , Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- , 57 of 67 total
- Tests: console.error 3 failednode_modules\prop-types\factoryWithTypeCheckers.js:21
- , Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- , 270 passedconsole.error, 275 total
- Snapshots: node_modules\prop-types\factoryWithTypeCheckers.js:21
- 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.tests/reducers/
- PASS tests\reducers\locationReducer.test.js
- Location Reducer
- √ set state to initial state when no new state is passed (1ms)
- SET_LOCATIONS
- √ set the app locations with provided data (2ms)
- RUNS tests/reducers/encounterRoleReducer.test.js
- RUNS tests/reducers/locationReducer.test.js
- RUNS tests/reducers/draftReducer/draftDrugOrderReducer.test.js
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.encounterRoleReducer.test.js
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.encounterReducer.test.js
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/draftReducer/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.draftDrugOrderReducer.test.js
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/labOrderReducers/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.fetchLabOrderReducer.test.js
- PASS tests\reducers\labOrderReducers\fetchLabOrderReducer.test.js
- RUNS tests/reducers/encounterRoleReducer.test.js
- RUNS tests/reducers/encounterReducer.test.js
- RUNS tests/reducers/draftReducer/draftDrugOrderReducer.test.js
- RUNS tests/reducers/labOrderReducers/fetchLabOrderReducer.test.js
- Test Suites: 1 failed, 58 passed, 59 of 67 total
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- fetchlaborder reducer test-suite
- tests/reducers/encounterRoleReducer.test.js
- RUNS tests/reducers/console.errorencounterReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- draftDrugOrderReducer.test.js
- RUNS console.error node_modules\prop-types\factoryWithTypeCheckers.js:21tests/reducers/labOrderReducers/
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.fetchLabOrderReducer.test.js
- Test Suites: 1 failedconsole.error , node_modules\prop-types\factoryWithTypeCheckers.js:21
- 58 passed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- √ sets status key loading to true upon action type
- FETCH_LAB_ORDERS_LOADING (2ms)
- √ sets status key fetched to true and parses data from payload
- to labOrders key on FETCH_LAB_ORDERS_SUCCESS (2ms)
- √ sets status key error to true and parses errormessage from
- payload to key errorMessage on FETCH_LAB_ORDERS_FAILURE (1ms)
- √ returns initial state if action type is not handled
- PASS tests\reducers\encounterRoleReducer.test.js
- encounterRole reducer for get actions
- √ should return loading as true (2ms)
- √ should return encounterRole (1ms)
- should return an error (1ms)console.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errorencounterRoleReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errorencounterReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/console.errorcareSettingReducer.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/draftReducer/console.errordraftDrugOrderReducer.test.js
- Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:21
- 1 failed Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- 59 passedconsole.error, 60 of 67 total
- Tests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- PASS tests\reducers\draftReducer\draftDrugOrderReducer.test.js
- Draft Table Reducer
- √ should set the state of a successful added draft order (2ms)
- √ should set the state of a successful deleted draft order (1ms)
- √ should set the state of successful deleted draft orders (1ms)
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- tests/reducers/ Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.tests/reducers/draftReducer/
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- contextReducer.test.jsconsole.error
- Test Suites: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- , 61 of 67 total
- console.errorTests: node_modules\prop-types\factoryWithTypeCheckers.js:213 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- PASS tests\reducers\encounterReducer.test.js
- encounter reducer for get actions
- √ should return loading as true (2ms)
- √ should return encounterType (1ms)
- √ should return an error (1ms)
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/actions/ dateFormat.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ careSettingReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/labOrderReducers/ labOrderableReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ contextReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- 1 failed , console.error62 passed , 63 of 67 total
- node_modules\prop-types\factoryWithTypeCheckers.js:21Tests:
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.3 failed
- 287 passedconsole.error, 292 total
- Snapshots: node_modules\prop-types\factoryWithTypeCheckers.js:211 failed
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.,
- 21 passed, 22 total
- PASS tests\reducers\careSettingReducer.test.jsithTypeCheckers.js:21
- RUNS tests/actions/dateFormat.test.js
- RUNS tests/reducers/careSettingReducer.test.js
- RUNS console.errortests/reducers/labOrderReducers/ labOrderableReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.errortests/reducers/ contextReducer.test.jsnode_modules\prop-types\factoryWithTypeCheckers.js:21
- Test Suites: Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- careSetting reducerrror62 passed , 63 of 67 total
- √ should successfully fetch care settings (1ms)
- √ should set the caresetting fetch error (1ms)
- √ should set the caresetting loading status (6ms)
- dateFormat.test.js
- RUNS tests/reducers/ careSettingReducer.test.jsconsole.error
- node_modules\prop-types\factoryWithTypeCheckers.js:21 RUNS
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- tests/reducers/labOrderReducers/labOrderableReducer.test.js
- RUNS tests/reducers/contextReducer.test.js
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21ithTypeCheckers.js:21,
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- RUNS tests/actions/console.errordateFormat.test.js
- node_modules\prop-types\factoryWithTypeCheckers.js:21
- RUNS Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error RUNS node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- contextReducer.test.js
- Test Suites: console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- PASS tests\reducers\contextReducer.test.jseOfType. Expected an array of check functions, but received undefined at index 2.1 failed
- context reducer
- √ default order context should be null (2ms)
- √ should set order context
- PASS tests\actions\dateFormat.test.js
- getDateFormat action
- √ creates GET_DATE_LOADING and GET_DATE_SUCCESS
- action types upon success response from server (7ms)
- RUNS tests/reducers/labOrderReducers/labOrderableReducer.test.js
- Test Suites: 1 failed, 65 passed, 66 of 67 total
- Tests: 3 failed, 2 skipped, 293 passed, 298 total
- Snapshots: 1 failed, 21 passed, 22 total
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- console.error node_modules\prop-types\factoryWithTypeCheckers.js:21
- Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 2.
- PASS tests\reducers\labOrderReducers\labOrderableReducer.test.js:21
- laborderable reducer
- √ should handle `FETCH_LAB_ORDERABLES_SUCCESS` (1ms)
- √ should handle `FETCH_LAB_ORDERABLES_FAILURE` (1ms)
- √ should handle FETCH_LAB_ORDERABLES_LOADING
- --------------------------------------|----------|----------|----------|----------|-------------------|
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
- --------------------------------------|----------|----------|----------|----------|-------------------|
- All files | 85.4 | 73.48 | 82.13 | 85.89 | |
- js | 75 | 16.67 | 33.33 | 75 | |
- config.js | 100 | 100 | 100 | 100 | |
- redux-store.jsx | 55.56 | 16.67 | 0 | 55.56 | 39,42,44,45 |
- routes.jsx | 100 | 100 | 100 | 100 | |
- js/actions | 98.17 | 86.96 | 96.83 | 98.85 | |
- actionTypes.js | 100 | 100 | 100 | 100 | |
- activeOrderAction.js | 100 | 100 | 100 | 100 | |
- careSetting.js | 100 | 100 | 100 | 100 | |
- context.js | 50 | 100 | 0 | 100 | |
- createOrder.js | 83.33 | 100 | 66.67 | 100 | |
- dateFormat.js | 100 | 100 | 100 | 100 | |
- draftActions.js | 100 | 100 | 100 | 100 | |
- draftLabOrderAction.js | 100 | 100 | 100 | 100 | |
- draftTableAction.js | 100 | 100 | 100 | 100 | |
- drug.js | 100 | 100 | 100 | 100 | |
- encounterRole.js | 100 | 100 | 100 | 100 | |
- encounterType.js | 100 | 100 | 100 | 100 | |
- fetchAllOrders.js | 100 | 50 | 100 | 100 | 11 |
- fetchOrders.js | 100 | 100 | 100 | 100 | |
- loading.js | 100 | 100 | 100 | 100 | |
- networkError.js | 100 | 100 | 100 | 100 | |
- orderAction.js | 100 | 100 | 100 | 100 | |
- orderEntryActions.js | 100 | 100 | 100 | 100 | |
- patient.js | 100 | 50 | 100 | 100 | 14 |
- settingEncounterRole.js | 95 | 100 | 100 | 93.33 | 32 |
- settingEncounterType.js | 93.75 | 50 | 100 | 92.31 | 25 |
- js/actions/labOrders | 92.31 | 85.71 | 90 | 94.74 | |
- fetchLabOrders.js | 100 | 100 | 100 | 100 | |
- labConceptsAction.js | 100 | 100 | 100 | 100 | |
- labOrderableAction.js | 100 | 100 | 100 | 100 | |
- settingLabOrderableAction.js | 90 | 75 | 85.71 | 93.33 | 33 |
- js/components | 95.65 | 100 | 83.33 | 100 | |
- Draft.jsx | 95.65 | 100 | 83.33 | 100 | |
- js/components/button | 100 | 100 | 100 | 100 | |
- IconButton.jsx | 100 | 100 | 100 | 100 | |
- js/components/drugOrderEntry | 97.56 | 91.43 | 94.12 | 97.44 | |
- index.jsx | 97.56 | 91.43 | 94.12 | 97.44 | 190 |
- js/components/drugOrderEntry/addForm | 59.02 | 62.96 | 56.41 | 61.54 | |
- AddForm.jsx | 53.77 | 63.49 | 46.67 | 56.44 |... 60,364,430,456 |
- DrugOrderPrintPreview.jsx | 100 | 100 | 100 | 100 | |
- FreeText.jsx | 100 | 53.85 | 100 | 100 | 38,48,55,74 |
- StandardDose.jsx | 88.89 | 64 | 83.33 | 88.89 | 237 |
- js/components/labOrderEntry | 98.46 | 87.5 | 100 | 100 | |
- LabEntryForm.jsx | 97.73 | 85.29 | 100 | 100 | 57,64,129,130,155 |
- LabPanelFieldSet.jsx | 100 | 100 | 100 | 100 | |
- LabTestFieldSet.jsx | 100 | 100 | 100 | 100 | |
- labData.js | 100 | 100 | 100 | 100 | |
- js/components/orderEntry | 88.27 | 61.31 | 83.33 | 89.41 | |
- Accordion.jsx | 100 | 83.33 | 100 | 100 | 7 |
- AllOrders.jsx | 86.67 | 100 | 60 | 92.86 | 76 |
- DrugOrderDetails.jsx | 100 | 100 | 100 | 100 | |
- LabOrderDetails.jsx | 100 | 50 | 100 | 100 | 24 |
- OrderEntryPage.jsx | 93.75 | 75 | 87.5 | 93.55 | 77,80,374,391 |
- OrderHeader.jsx | 100 | 80 | 100 | 100 | 33,41 |
- OrdersTable.jsx | 78.57 | 30.36 | 85.71 | 77.5 |... 83,184,185,186 |
- Paginate.jsx | 100 | 100 | 100 | 100 | |
- SelectOrderType.jsx | 66.67 | 62.5 | 57.14 | 73.33 | 16,22,26,30 |
- orderTypes.js | 100 | 100 | 100 | 100 | |
- js/components/searchDrug | 100 | 94.12 | 100 | 100 | |
- View.jsx | 100 | 90.91 | 100 | 100 | 34 |
- index.jsx | 100 | 100 | 100 | 100 | |
- js/components/tabs | 100 | 100 | 87.5 | 100 | |
- DosageTab.jsx | 100 | 100 | 66.67 | 100 | |
- DosageTabs.jsx | 100 | 100 | 100 | 100 | |
- js/middlewares | 96.43 | 90.63 | 100 | 96.23 | |
- errorMiddleware.js | 100 | 100 | 100 | 100 | |
- responseHandlerMiddleware.js | 95.74 | 90 | 100 | 95.65 | 64,65 |
- js/reducers | 98.6 | 95.24 | 95.83 | 98.58 | |
- activeOrderReducer.js | 100 | 87.5 | 100 | 100 | 25,61,70,74,80 |
- careSettingReducer.js | 100 | 100 | 100 | 100 | |
- contextReducer.js | 100 | 100 | 100 | 100 | |
- createOrderReducer.js | 100 | 100 | 100 | 100 | |
- dateFormatReducer.js | 100 | 100 | 100 | 100 | |
- drugSearchReducer.js | 100 | 100 | 100 | 100 | |
- encounterReducer.js | 100 | 100 | 100 | 100 | |
- encounterRoleReducer.js | 100 | 100 | 100 | 100 | |
- fetchOrdersReducer.js | 91.3 | 93.75 | 83.33 | 90.48 | 78,81 |
- index.js | 0 | 0 | 0 | 0 | |
- initialState.js | 0 | 0 | 0 | 0 | |
- locationReducer.js | 100 | 100 | 100 | 100 | |
- noteReducer.js | 100 | 100 | 100 | 100 | |
- orderEntryReducer.js | 100 | 100 | 100 | 100 | |
- orderSelectionReducer.js | 100 | 100 | 100 | 100 | |
- pastOrdersReducer.js | 100 | 100 | 100 | 100 | |
- patientReducer.js | 100 | 100 | 100 | 100 | |
- settingEncounterRoleReducer.js | 100 | 100 | 100 | 100 | |
- settingEncounterTypeReducer.js | 100 | 100 | 100 | 100 | |
- js/reducers/draftReducer | 71.93 | 68 | 73.33 | 70.37 | |
- draftDrugOrderReducer.js | 100 | 100 | 100 | 100 | |
- draftLabOrderReducer.js | 68.63 | 60 | 69.23 | 66.67 |... 13,114,116,118 |
- index.js | 0 | 0 | 0 | 0 | |
- js/reducers/labOrders | 100 | 100 | 100 | 100 | |
- fetchLabOrderReducer.js | 100 | 100 | 100 | 100 | |
- labConceptsReducer.js | 100 | 100 | 100 | 100 | |
- labOrderableReducer.js | 100 | 100 | 100 | 100 | |
- settingLabOrderableReducer.js | 100 | 100 | 100 | 100 | |
- js/rest | 7.69 | 0 | 0 | 7.69 | |
- encounterRest.js | 7.69 | 0 | 0 | 7.69 |... 20,24,26,27,29 |
- js/sagas | 8.16 | 0 | 0 | 9.3 | |
- index.js | 66.67 | 100 | 0 | 66.67 | 10 |
- orderSaga.js | 4.35 | 0 | 0 | 5 |... 07,109,111,116 |
- js/utils | 86.21 | 77.27 | 75 | 88 | |
- constants.js | 100 | 100 | 100 | 100 | |
- globalProperty.js | 85.71 | 100 | 66.67 | 100 | |
- helpers.js | 76.92 | 77.27 | 66.67 | 75 | 14,15,19 |
- toast.js | 100 | 100 | 100 | 100 | |
- --------------------------------------|----------|----------|----------|----------|-------------------|
- Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent.
- You can add a runtime option to disable the check or this warning:
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
- Handlebars: Access has been denied to resolve the property "branches" because it is not an "own property" of its parent.
- You can add a runtime option to disable the check or this warning:
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
- Handlebars: Access has been denied to resolve the property "functions" because it is not an "own property" of its parent.
- You can add a runtime option to disable the check or this warning:
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
- Handlebars: Access has been denied to resolve the property "lines" because it is not an "own property" of its parent.
- You can add a runtime option to disable the check or this warning:
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
- Summary of all failing tests
- FAIL tests\components\DrugOrderEntry\addForm\AddForm.test.jsx (7.282s)
- ● Test for adding a new drug order › should render component
- expect(value).toMatchSnapshot()
- Received value does not match stored snapshot 1.
- - Snapshot
- + Received
- @@ -82,7 +82,17 @@
- }
- />
- <br />
- </DosageTab>
- </DosageTabs>
- + <button
- + onClick={[Function]}
- + variant="primary"
- + >
- + Launch demo modal
- + </button>
- + <MyVerticallyCenteredModal
- + onHide={[Function]}
- + show={false}
- + />
- </div>
- </div>
- 81 | it('should render component', () => {
- 82 | const wrapper = shallowWithIntl(<AddForm {...props} />);
- > 83 | expect(wrapper).toMatchSnapshot();
- 84 | });
- 85 |
- 86 | describe('Outpatient orders', () => {
- at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:83:21)
- ● Test for adding a new drug order › Outpatient orders › encountered a declaration exception
- TypeError: (0 , _react.useState) is not a function
- 85 |
- 86 | describe('Outpatient orders', () => {
- > 87 | const wrapper = mountWithIntl(<AddForm {...props} />);
- 88 | describe('Activate and deactivate Confirm button under standard dosing form', () => {
- 89 | beforeEach(() => {
- 90 | wrapper.find('[name="dose"]').simulate('change', { target: { name: 'dose', value: 8 } });
- at node_modules/react-bootstrap/cjs/Modal.js:112:39
- at updateForwardRef (node_modules/react-dom/cjs/react-dom.development.js:13045:20)
- at beginWork (node_modules/react-dom/cjs/react-dom.development.js:13836:14)
- at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:15863:12)
- at workLoop (node_modules/react-dom/cjs/react-dom.development.js:15902:24)
- at renderRoot (node_modules/react-dom/cjs/react-dom.development.js:15942:7)
- at performWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:16560:22)
- at performWork (node_modules/react-dom/cjs/react-dom.development.js:16482:7)
- at performSyncWork (node_modules/react-dom/cjs/react-dom.development.js:16454:3)
- at requestWork (node_modules/react-dom/cjs/react-dom.development.js:16354:5)
- at scheduleWork$1 (node_modules/react-dom/cjs/react-dom.development.js:16218:11)
- at scheduleRootUpdate (node_modules/react-dom/cjs/react-dom.development.js:16785:3)
- at updateContainerAtExpirationTime (node_modules/react-dom/cjs/react-dom.development.js:16812:10)
- at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:16839:10)
- at ReactRoot.Object.<anonymous>.ReactRoot.render (node_modules/react-dom/cjs/react-dom.development.js:17122:3)
- at node_modules/react-dom/cjs/react-dom.development.js:17262:14
- at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:16679:10)
- at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:17258:5)
- at Object.render (node_modules/react-dom/cjs/react-dom.development.js:17317:12)
- at Object.render (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:218:50)
- at new ReactWrapper (node_modules/enzyme/build/ReactWrapper.js:98:16)
- at mount (node_modules/enzyme/build/mount.js:19:10)
- at mountWithIntl (node_modules/@openmrs/react-components/lib/components/localization/test/helpers/intl-test.js:50:28)
- at Suite.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:87:21)
- at Suite.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:86:3)
- at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:80:1)
- ● Test AddForm state › should update state
- TypeError: (0 , _react.useState) is not a function
- 197 | describe('Test AddForm state', () => {
- 198 | it('should update state', () => {
- > 199 | mountedComponent = mountWithIntl(<AddForm {...props} />);
- 200 | getComponent().setState({ fields: { dose: 11 } });
- 201 | getComponent()
- 202 | .find('[name="dose"]')
- at node_modules/react-bootstrap/cjs/Modal.js:112:39
- at updateForwardRef (node_modules/react-dom/cjs/react-dom.development.js:13045:20)
- at beginWork (node_modules/react-dom/cjs/react-dom.development.js:13836:14)
- at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:15863:12)
- at workLoop (node_modules/react-dom/cjs/react-dom.development.js:15902:24)
- at renderRoot (node_modules/react-dom/cjs/react-dom.development.js:15942:7)
- at performWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:16560:22)
- at performWork (node_modules/react-dom/cjs/react-dom.development.js:16482:7)
- at performSyncWork (node_modules/react-dom/cjs/react-dom.development.js:16454:3)
- at requestWork (node_modules/react-dom/cjs/react-dom.development.js:16354:5)
- at scheduleWork$1 (node_modules/react-dom/cjs/react-dom.development.js:16218:11)
- at scheduleRootUpdate (node_modules/react-dom/cjs/react-dom.development.js:16785:3)
- at updateContainerAtExpirationTime (node_modules/react-dom/cjs/react-dom.development.js:16812:10)
- at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:16839:10)
- at ReactRoot.Object.<anonymous>.ReactRoot.render (node_modules/react-dom/cjs/react-dom.development.js:17122:3)
- at node_modules/react-dom/cjs/react-dom.development.js:17262:14
- at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:16679:10)
- at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:17258:5)
- at Object.render (node_modules/react-dom/cjs/react-dom.development.js:17317:12)
- at Object.render (node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:218:50)
- at new ReactWrapper (node_modules/enzyme/build/ReactWrapper.js:98:16)
- at mount (node_modules/enzyme/build/mount.js:19:10)
- at mountWithIntl (node_modules/@openmrs/react-components/lib/components/localization/test/helpers/intl-test.js:50:28)
- at Object.<anonymous> (tests/components/DrugOrderEntry/addForm/AddForm.test.jsx:199:24)
- Snapshot Summary
- › 1 snapshot test failed in 1 test suite. Inspect your code changes or run `npm test -- -u` to update them.
- Test Suites: 1 failed, 66 passed, 67 total
- Tests: 3 failed, 2 skipped, 296 passed, 301 total
- Snapshots: 1 failed, 21 passed, 22 total
- Time: 61.883s
- Ran all test suites.
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! @openmrs/orderentry-owa@1.2.5-SNAPSHOT test: `npm run lint && jest --coverage --maxWorkers=4`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the @openmrs/orderentry-owa@1.2.5-SNAPSHOT test script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- npm ERR! C:\Users\NextGen\AppData\Roaming\npm-cache\_logs\2021-04-26T07_31_25_179Z-debug.log
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! @openmrs/orderentry-owa@1.2.5-SNAPSHOT build:prod: `npm run test && npm run build`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the @openmrs/orderentry-owa@1.2.5-SNAPSHOT build:prod script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- npm ERR! C:\Users\NextGen\AppData\Roaming\npm-cache\_logs\2021-04-26T07_31_25_261Z-debug.log
- PS F:\digimodules\openmrs-owa-orderentry>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement