@openmrs/esm-styleguide 4.3.2-pre.661 → 4.3.2-pre.666

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.
@@ -1,4 +1,4 @@
1
- @openmrs/esm-styleguide:build: cache hit, replaying output c29cdf19b07494b0
1
+ @openmrs/esm-styleguide:build: cache hit, replaying output 97a290df0808a600
2
2
  @openmrs/esm-styleguide:build: Browserslist: caniuse-lite is outdated. Please run:
3
3
  @openmrs/esm-styleguide:build:  npx update-browserslist-db@latest
4
4
  @openmrs/esm-styleguide:build:  Why you should do it regularly: https://github.com/browserslist/update-db#readme
@@ -52,4 +52,4 @@
52
52
  @openmrs/esm-styleguide:build: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
53
53
  @openmrs/esm-styleguide:build: For more info visit https://webpack.js.org/guides/code-splitting/
54
54
  @openmrs/esm-styleguide:build: 
55
- @openmrs/esm-styleguide:build: webpack 5.77.0 compiled with 3 warnings in 22620 ms
55
+ @openmrs/esm-styleguide:build: webpack 5.77.0 compiled with 3 warnings in 19634 ms
package/jest.config.js ADDED
@@ -0,0 +1,34 @@
1
+ module.exports = {
2
+ transform: {
3
+ "\\.[jt]sx?$": "@swc/jest",
4
+ },
5
+ transformIgnorePatterns: ["/node_modules/(?!@openmrs)"],
6
+ moduleNameMapper: {
7
+ "\\.(s?css)$": "identity-obj-proxy",
8
+ "^@carbon/icons-react/es/(.*)$": "@carbon/icons-react/lib/$1",
9
+ "^@carbon/charts": "identity-obj-proxy",
10
+ "@openmrs/esm-framework": "@openmrs/esm-framework/mock",
11
+ "^lodash-es/(.*)$": "lodash/$1",
12
+ dexie: require.resolve("dexie"),
13
+ },
14
+ collectCoverageFrom: [
15
+ "**/src/**/*.component.tsx",
16
+ "!**/node_modules/**",
17
+ "!**/vendor/**",
18
+ "!**/src/**/*.test.*",
19
+ "!**/src/declarations.d.tsx",
20
+ ],
21
+ coverageThreshold: {
22
+ global: {
23
+ statements: 80,
24
+ branches: 80,
25
+ functions: 80,
26
+ lines: 80,
27
+ },
28
+ },
29
+ setupFilesAfterEnv: ["<rootDir>/setupTests.ts"],
30
+ testEnvironment: "jsdom",
31
+ testEnvironmentOptions: {
32
+ url: "http://localhost/",
33
+ },
34
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@openmrs/esm-styleguide",
3
- "version": "4.3.2-pre.661",
3
+ "version": "4.3.2-pre.666",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-styleguide.js",
7
7
  "main": "src/index.ts",
8
8
  "source": true,
9
9
  "scripts": {
10
- "test": "jest --config jest.config.json --passWithNoTests",
10
+ "test": "jest --config jest.config.js --passWithNoTests",
11
11
  "start:storybook": "start-storybook --port 7000",
12
12
  "build:storybook": "build-storybook",
13
13
  "build": "webpack --mode=production",
@@ -52,9 +52,9 @@
52
52
  "rxjs": "6.x"
53
53
  },
54
54
  "devDependencies": {
55
- "@openmrs/esm-extensions": "^4.3.2-pre.661",
56
- "@openmrs/esm-react-utils": "^4.3.2-pre.661",
57
- "@openmrs/esm-state": "^4.3.2-pre.661",
55
+ "@openmrs/esm-extensions": "^4.3.2-pre.666",
56
+ "@openmrs/esm-react-utils": "^4.3.2-pre.666",
57
+ "@openmrs/esm-state": "^4.3.2-pre.666",
58
58
  "autoprefixer": "^9.8.8",
59
59
  "css-minimizer-webpack-plugin": "^1.2.0",
60
60
  "i18next": "^19.6.0",
@@ -65,5 +65,5 @@
65
65
  "react-dom": "^18.1.0",
66
66
  "rxjs": "^6.5.3"
67
67
  },
68
- "gitHead": "193646f25ee046b71527128b93e4ad9df6704cf5"
68
+ "gitHead": "c224f96451732d2bc86c4b8b3f1994b92931b8d9"
69
69
  }
package/setupTests.ts CHANGED
@@ -4,6 +4,7 @@ declare global {
4
4
  interface Window {
5
5
  openmrsBase: string;
6
6
  spaBase: string;
7
+ getOpenmrsSpaBase: () => string;
7
8
  }
8
9
  }
9
10
 
package/jest.config.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "transform": {
3
- "\\.[jt]sx?$": "@swc/jest"
4
- },
5
- "transformIgnorePatterns": ["/node_modules/(?!@openmrs)"],
6
- "moduleNameMapper": {
7
- "\\.(s?css)$": "identity-obj-proxy",
8
- "^@carbon/icons-react/es/(.*)$": "@carbon/icons-react/lib/$1",
9
- "^@carbon/charts": "identity-obj-proxy",
10
- "@openmrs/esm-framework": "@openmrs/esm-framework/mock",
11
- "^lodash-es/(.*)$": "lodash/$1"
12
- },
13
- "collectCoverageFrom": [
14
- "**/src/**/*.component.tsx",
15
- "!**/node_modules/**",
16
- "!**/vendor/**",
17
- "!**/src/**/*.test.*",
18
- "!**/src/declarations.d.tsx"
19
- ],
20
- "coverageThreshold": {
21
- "global": {
22
- "statements": 80,
23
- "branches": 80,
24
- "functions": 80,
25
- "lines": 80
26
- }
27
- },
28
- "setupFilesAfterEnv": ["<rootDir>/setupTests.ts"],
29
- "testEnvironment": "jsdom",
30
- "testEnvironmentOptions": {
31
- "url": "http://localhost/"
32
- }
33
- }