diff --git a/jest.config.js b/jest.config.js index b7a2a00..c58e500 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,16 +1,16 @@ /** * @returns {Promise} */ -const path = require('path'); +const path = require("path"); module.exports = { collectCoverageFrom: [ - '**/src/**/*.component.tsx', - '!**/node_modules/**', - '!**/vendor/**', - '!**/src/**/*.test.*', - '!**/src/declarations.d.ts', - '!**/e2e/**', + "**/src/**/*.component.tsx", + "!**/node_modules/**", + "!**/vendor/**", + "!**/src/**/*.test.*", + "!**/src/declarations.d.ts", + "!**/e2e/**", ], transform: { "^.+\\.tsx?$": ["@swc/jest"], @@ -18,12 +18,13 @@ module.exports = { transformIgnorePatterns: ["/node_modules/(?!@openmrs)"], moduleNameMapper: { "@openmrs/esm-framework": "@openmrs/esm-framework/mock", + "@openmrs/esm-utils": "@openmrs/esm-framework/mock", "\\.(s?css)$": "identity-obj-proxy", "^lodash-es/(.*)$": "lodash/$1", "^dexie$": require.resolve("dexie"), }, setupFilesAfterEnv: ["/src/setup-tests.ts"], - testPathIgnorePatterns: [path.resolve(__dirname, 'e2e')], + testPathIgnorePatterns: [path.resolve(__dirname, "e2e")], testEnvironment: "jsdom", testEnvironmentOptions: { url: "http://localhost/", diff --git a/yarn.lock b/yarn.lock index 4f67a48..13ea11b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5353,9 +5353,9 @@ __metadata: languageName: node linkType: hard -"@openmrs/esm-api@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-api@npm:5.5.1-pre.1737" +"@openmrs/esm-api@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-api@npm:5.5.1-pre.1741" dependencies: "@types/fhir": 0.0.31 lodash-es: ^4.17.21 @@ -5364,17 +5364,17 @@ __metadata: "@openmrs/esm-error-handling": 5.x "@openmrs/esm-navigation": 5.x "@openmrs/esm-offline": 5.x - checksum: f7c9d72968dd8ceb99272a19ab514a0176e1cd52c5bea58ee5cda64affc149c7ae86b7815fec035b1cb8944a49f949cd8dd1fc81943e6821aca73c41425276d0 + checksum: c597d7cdc5ba26eea3cb8f2780a3fed97deb001af0b0e69e94fccdaf3b906046f847970ccdea32d7f854e79ff8081075506f3c0a1f39598737847d67acb099de languageName: node linkType: hard -"@openmrs/esm-app-shell@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-app-shell@npm:5.5.1-pre.1737" +"@openmrs/esm-app-shell@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-app-shell@npm:5.5.1-pre.1741" dependencies: "@carbon/react": ~1.37.0 - "@openmrs/esm-framework": 5.5.1-pre.1737 - "@openmrs/esm-styleguide": 5.5.1-pre.1737 + "@openmrs/esm-framework": 5.5.1-pre.1741 + "@openmrs/esm-styleguide": 5.5.1-pre.1741 dayjs: ^1.10.4 dexie: ^3.0.3 html-webpack-plugin: ^5.5.0 @@ -5399,44 +5399,44 @@ __metadata: workbox-strategies: ^6.1.5 workbox-webpack-plugin: ^6.1.5 workbox-window: ^6.1.5 - checksum: 3be908ad7feaa8f13adae2b24cf38e589e6ed7ff5e944c80f4a54988491ff99182e0bd778f8164b739e5413d515fe858ab103aa2debdd25b6a2555cc3d2f1dd8 + checksum: 51e6c47e5eda412d2b59ef2b54d3db31f6797659ddf18f31ab4b33eebe7f30a9a43445e752a9e90e430f9c587333831d29d711a9bd02b5d6ed2a98c1a337a2b0 languageName: node linkType: hard -"@openmrs/esm-config@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-config@npm:5.5.1-pre.1737" +"@openmrs/esm-config@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-config@npm:5.5.1-pre.1741" dependencies: ramda: ^0.26.1 peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x single-spa: 5.x - checksum: 27fe15df455edf80cc3725077e7ae7286a6ea9fad4bd9cf2bca402fbfe4725f6b5bbc814e6c21e12302eeec2952dbbbe2be4c9e91ad6ad86798664806f62fd0f + checksum: 124ef86f9a1f7443a4d48a7fbd69c0bf9100f59c664f123faf19fdf5ef58eb1b1def32f56be542ec0b4c0d785b30af00724fe647005d12740b8c0c05f79d0db3 languageName: node linkType: hard -"@openmrs/esm-dynamic-loading@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-dynamic-loading@npm:5.5.1-pre.1737" +"@openmrs/esm-dynamic-loading@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-dynamic-loading@npm:5.5.1-pre.1741" peerDependencies: "@openmrs/esm-globals": 5.x - checksum: cd190aa906b346b66df04bf0481d23b2f560355fd50dd352b90ecb6ed8ab0f339d9ba4b2378f5c5c39267875ff9ad5b9a5a39daf62dee0d1610a827dead912ae + checksum: 1b5180f499be9446f098d787cf6c014e5fa1289888c4ca04d442519339f093671d5fe539999bd424ce6ab858d01ff5907e71cde61a8134ae09f5bc757bfd6cce languageName: node linkType: hard -"@openmrs/esm-error-handling@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-error-handling@npm:5.5.1-pre.1737" +"@openmrs/esm-error-handling@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-error-handling@npm:5.5.1-pre.1741" peerDependencies: "@openmrs/esm-globals": 5.x - checksum: 47d90aa988ee03a41280366eac27f635d0341e9146b5e4639a3a4b32fad9cb96690a44b97ed13acf7e8cea131625a02a59f048cdae6faea14801d122bbae6724 + checksum: b304def3b5224b37a3d046e69aa2c606b8f58d0bde9e11508142f5e44052f08592480bd4ccb0ff9cdea3283ea4e6f180c64219af6b5b05c5e8e69807ef1da084 languageName: node linkType: hard -"@openmrs/esm-extensions@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-extensions@npm:5.5.1-pre.1737" +"@openmrs/esm-extensions@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-extensions@npm:5.5.1-pre.1741" dependencies: lodash-es: ^4.17.21 peerDependencies: @@ -5445,42 +5445,42 @@ __metadata: "@openmrs/esm-feature-flags": 5.x "@openmrs/esm-state": 5.x single-spa: 5.x - checksum: ed9eafa8e15db580899adda2df966b5533cbfd82cd0be24157887cb2181c0be15ded8dd0371cdc4f256147ec044a04d8df6ff92ea7bf9efaa787b3964d7046ba + checksum: 8a87afd76c90a2ba9c829f5634e4e9d127b96515beb2e417c7adafb6b8433d3cea1e9014c6d37446572327afa15b31efb1ecbe799ed7d50c41cf8773f7e1036d languageName: node linkType: hard -"@openmrs/esm-feature-flags@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-feature-flags@npm:5.5.1-pre.1737" +"@openmrs/esm-feature-flags@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-feature-flags@npm:5.5.1-pre.1741" dependencies: ramda: ^0.26.1 peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x single-spa: 5.x - checksum: 6968b8d3b2adba996d66f474698d3e1eb489d11387ac994ec981af0a97f6a0fdff5f5c8ffb5f5d87d4827553dfecf78311f9429c69bba5bf33c04340ff50298b - languageName: node - linkType: hard - -"@openmrs/esm-framework@npm:5.5.1-pre.1737, @openmrs/esm-framework@npm:next": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-framework@npm:5.5.1-pre.1737" - dependencies: - "@openmrs/esm-api": 5.5.1-pre.1737 - "@openmrs/esm-config": 5.5.1-pre.1737 - "@openmrs/esm-dynamic-loading": 5.5.1-pre.1737 - "@openmrs/esm-error-handling": 5.5.1-pre.1737 - "@openmrs/esm-extensions": 5.5.1-pre.1737 - "@openmrs/esm-feature-flags": 5.5.1-pre.1737 - "@openmrs/esm-globals": 5.5.1-pre.1737 - "@openmrs/esm-navigation": 5.5.1-pre.1737 - "@openmrs/esm-offline": 5.5.1-pre.1737 - "@openmrs/esm-react-utils": 5.5.1-pre.1737 - "@openmrs/esm-routes": 5.5.1-pre.1737 - "@openmrs/esm-state": 5.5.1-pre.1737 - "@openmrs/esm-styleguide": 5.5.1-pre.1737 - "@openmrs/esm-translations": 5.5.1-pre.1737 - "@openmrs/esm-utils": 5.5.1-pre.1737 + checksum: a3679d7fe8a212442935a5da2bbb32e305919d09e967136e767978098ce3552c0270c9edb5b54455e8b8e159b282d36b3115fb585980d5c6ddbc420112c2616a + languageName: node + linkType: hard + +"@openmrs/esm-framework@npm:5.5.1-pre.1741, @openmrs/esm-framework@npm:next": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-framework@npm:5.5.1-pre.1741" + dependencies: + "@openmrs/esm-api": 5.5.1-pre.1741 + "@openmrs/esm-config": 5.5.1-pre.1741 + "@openmrs/esm-dynamic-loading": 5.5.1-pre.1741 + "@openmrs/esm-error-handling": 5.5.1-pre.1741 + "@openmrs/esm-extensions": 5.5.1-pre.1741 + "@openmrs/esm-feature-flags": 5.5.1-pre.1741 + "@openmrs/esm-globals": 5.5.1-pre.1741 + "@openmrs/esm-navigation": 5.5.1-pre.1741 + "@openmrs/esm-offline": 5.5.1-pre.1741 + "@openmrs/esm-react-utils": 5.5.1-pre.1741 + "@openmrs/esm-routes": 5.5.1-pre.1741 + "@openmrs/esm-state": 5.5.1-pre.1741 + "@openmrs/esm-styleguide": 5.5.1-pre.1741 + "@openmrs/esm-translations": 5.5.1-pre.1741 + "@openmrs/esm-utils": 5.5.1-pre.1741 dayjs: ^1.10.7 peerDependencies: dayjs: 1.x @@ -5491,33 +5491,33 @@ __metadata: rxjs: 6.x single-spa: 5.x swr: 2.x - checksum: 2a86fc7b1b44b201b8cf6f290bb13ca9238b644d9e80a2d9dd0faff0589f239fbf0b2a234c62240d48258ff6b5a0a7f05c888b9fd558e4a07d04f9ab63b2db8c + checksum: 87699627a7b135b3a4a668a60fcec0b9bc262929c385e5a8c1a2386878fd1c25391b866791519af2b728eeff6df124e7ed24f8101a684096c9d186f3abbee794 languageName: node linkType: hard -"@openmrs/esm-globals@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-globals@npm:5.5.1-pre.1737" +"@openmrs/esm-globals@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-globals@npm:5.5.1-pre.1741" peerDependencies: single-spa: 5.x - checksum: aacbd85b7f7c650d818191f59451090fe1e800e0d3910bc550f58449c84189ef0df7a5f5e30c0558bdc203161d7de8bde958b173f995438da7b0afc29706805e + checksum: ad64409746c631568b5877c3f96e58816717de19f4b69e88ff303f69e65884259b5c08e876b4f4d92b8861c9449dbd61e650d5e8a24a08829ebd761065bd4ca3 languageName: node linkType: hard -"@openmrs/esm-navigation@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-navigation@npm:5.5.1-pre.1737" +"@openmrs/esm-navigation@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-navigation@npm:5.5.1-pre.1741" dependencies: path-to-regexp: 6.1.0 peerDependencies: "@openmrs/esm-state": 5.x - checksum: d5e0cb507ea59cd4e7b02ec0750070e9942cb945314e280073db0579b5221a876f4a3963a3c3c8c6e60e82ffcdd41742898ab92e40bc863bf987af999ad63089 + checksum: 5b2a62f1d40315bc5dc228fa0c7664b3cd1d1eeda429dda8aa16e28849bfa2bf289115859a32f86a25fc9f3335e84f98ff30dfe7e4822c78ce2a9e324ca8fc3b languageName: node linkType: hard -"@openmrs/esm-offline@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-offline@npm:5.5.1-pre.1737" +"@openmrs/esm-offline@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-offline@npm:5.5.1-pre.1741" dependencies: dexie: ^3.0.3 lodash-es: ^4.17.21 @@ -5529,13 +5529,13 @@ __metadata: "@openmrs/esm-state": 5.x "@openmrs/esm-styleguide": 5.x rxjs: 6.x - checksum: 7113367305dcd75abe553639c57ffdf28d675768f7c11575c00605f00885a5381ebb4c4cadd61f95ccc0a701d151c8d3fa60e5d50ee12009d304bf3626fb66df + checksum: caff9ffe91d8c7a398e7b86a1661b622d847aad11a7ef00df3ca8b80a117150edd17bd32fe57e91d46486279971601a745d78a4a9b1b946f755fb53da9be714e languageName: node linkType: hard -"@openmrs/esm-react-utils@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-react-utils@npm:5.5.1-pre.1737" +"@openmrs/esm-react-utils@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-react-utils@npm:5.5.1-pre.1741" dependencies: lodash-es: ^4.17.21 single-spa-react: ^6.0.0 @@ -5554,34 +5554,34 @@ __metadata: react-i18next: 11.x rxjs: 6.x swr: 2.x - checksum: be9617259630f39053577af2e0789683f3b9413704975fe80d49d991e432bb9dfd5f82ed5aaf814002ac87b49bfbd496f95ef491de799ad19950440aef9c6a8c + checksum: d7db128900dd13471eff7a9d67af16407ebec8eab6242eed2f3764b6028c49047457d23fdf395270d74b84cbf19059d6e6bb406a7b86defd48dedcabd0ad65b1 languageName: node linkType: hard -"@openmrs/esm-routes@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-routes@npm:5.5.1-pre.1737" +"@openmrs/esm-routes@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-routes@npm:5.5.1-pre.1741" peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-utils": 5.x - checksum: bc9f6604866df7424cd82766bc03f4e24a8a9152d9c12059f91b2660d4951bc1ac0064dbe89ec2964dcc22e79e1bb8294f8cd9e965b09a812ebbd771130c7e6e + checksum: 22eb8d192a26be971616bc9d9d1a4136e08614849b92ed90f7482fef111bcfa8adcf296f6b56c9501b385b0838eb5860b362f0cf4e8c152ea608b4119b1c5fd2 languageName: node linkType: hard -"@openmrs/esm-state@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-state@npm:5.5.1-pre.1737" +"@openmrs/esm-state@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-state@npm:5.5.1-pre.1741" dependencies: zustand: ^4.3.6 peerDependencies: "@openmrs/esm-globals": 5.x - checksum: 214f1d637e40644a45725474fefb9a8a8cb00ab82226bcaf7788325a37325ac962d6e1b34e325ae7983e9854d77fee4e278a394a042760e616529624ee52c488 + checksum: 119028d0dd0070770f61753a65d7e2c65adb90838eaaaea3209311a2501c8e38eabd3bb0f1771f606894777f8b38c02b3f0ed09174b8fe81410839024c5bdd84 languageName: node linkType: hard -"@openmrs/esm-styleguide@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-styleguide@npm:5.5.1-pre.1737" +"@openmrs/esm-styleguide@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-styleguide@npm:5.5.1-pre.1741" dependencies: "@carbon/charts": ^1.12.0 "@carbon/react": ~1.37.0 @@ -5604,7 +5604,7 @@ __metadata: react: 18.x react-dom: 18.x rxjs: 6.x - checksum: f3a37c435eba770cd871a39e460958b2255ea17a39a1976f5761cfba7baab0c4769c52f88fb10ad642b61f46d08bf8d37bcdc03ca7a32ea5c4a11a05fbfc40a8 + checksum: 565a8d0c72f4e985c98c6a1a2a1797a235847955a50a609289c2df5b560c518765589068312e0a7e2b35d9c2c2c7ef0d08b4b581861231df4108642acc4b53e3 languageName: node linkType: hard @@ -5688,33 +5688,33 @@ __metadata: languageName: unknown linkType: soft -"@openmrs/esm-translations@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-translations@npm:5.5.1-pre.1737" +"@openmrs/esm-translations@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-translations@npm:5.5.1-pre.1741" dependencies: i18next: 21.10.0 peerDependencies: i18next: 21.x - checksum: d28e478b16a89d7c61c07196cc9020d5b2e53a9123c23995a601629fff3834bf3fe1925f8318721cb8b25aab38123356c432b2e34d0d5c5554ff0f7bb88502bb + checksum: 1702311ecddad8bb30c20fec8fefeaf7d37637f733981af4559d2cb3a061a866010e3827e77da05d388e0117c8bdc2b8dcc6215d4d87582e37f7dd749cd0a695 languageName: node linkType: hard -"@openmrs/esm-utils@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/esm-utils@npm:5.5.1-pre.1737" +"@openmrs/esm-utils@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/esm-utils@npm:5.5.1-pre.1741" dependencies: semver: 7.3.2 peerDependencies: dayjs: 1.x i18next: 21.x rxjs: 6.x - checksum: 001a4258f17dbfba5243f8ba37e5e159a9b28df1896a1442dde160f4e0fc493fee1b39738adefa82a4803fd31ffd1ff4ea697744ac89385ce1e711c33ea066ed + checksum: 66f81ac6834d379c3ba8c9e6fe15b8212ef73412e8bedb577b14646518c18c190b6bbe50a3fbc7cafae67c03aa8f44f61c44ce8bdd779777e6d63431448ed415 languageName: node linkType: hard -"@openmrs/webpack-config@npm:5.5.1-pre.1737": - version: 5.5.1-pre.1737 - resolution: "@openmrs/webpack-config@npm:5.5.1-pre.1737" +"@openmrs/webpack-config@npm:5.5.1-pre.1741": + version: 5.5.1-pre.1741 + resolution: "@openmrs/webpack-config@npm:5.5.1-pre.1741" dependencies: "@swc/core": ^1.3.58 clean-webpack-plugin: ^4.0.0 @@ -5731,7 +5731,7 @@ __metadata: webpack-stats-plugin: ^1.0.3 peerDependencies: webpack: 5.x - checksum: 534d69bddf30b380f63f5e92f06cd0519b381b99a8062a26204135e0e3a4e190eb16e0d761b1df5ebbf8856667a2f955cce01006dc78fa15f8130fd409d3cd71 + checksum: fb232c69d9627f4e9bb7ad8e9ae0febf73807785185c2e0cb999d0749b28b7063e05d8c9ac4e5971cd157c1e48b40b14f9f551dda5849b4d208a54e83213492e languageName: node linkType: hard @@ -19282,12 +19282,12 @@ __metadata: linkType: hard "openmrs@npm:next": - version: 5.5.1-pre.1737 - resolution: "openmrs@npm:5.5.1-pre.1737" + version: 5.5.1-pre.1741 + resolution: "openmrs@npm:5.5.1-pre.1741" dependencies: "@carbon/icons-react": 11.26.0 - "@openmrs/esm-app-shell": 5.5.1-pre.1737 - "@openmrs/webpack-config": 5.5.1-pre.1737 + "@openmrs/esm-app-shell": 5.5.1-pre.1741 + "@openmrs/webpack-config": 5.5.1-pre.1741 "@pnpm/npm-conf": ^2.1.0 "@swc/core": ^1.3.58 autoprefixer: ^10.4.2 @@ -19318,7 +19318,7 @@ __metadata: yargs: ^17.6.2 bin: openmrs: ./dist/cli.js - checksum: d705fe933855196fba1c2802fcfc8d05b6780db2da0d5b97bcaedecaa21af0db218264cf5a8613df207f775761b49b6a15f7090f7d784c28ce91649e11606c19 + checksum: 9dfc84440a081188df5dd53d7ae64862f75415289fec76b396b7336e6ef37ac7585378247b9f5bd06e9d2489f2d81b359e0ff84ecc901738838f2150760de00a languageName: node linkType: hard