Skip to content

Commit 236e8d8

Browse files
Add mendix module mock and update jest config
- Add __mocks__/mendix.js mock for the mendix root module - Map ^mendix$ in moduleNameMapper to the new mock - Reformat jest.config.js to 2-space indentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 93f6d38 commit 236e8d8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
const ValueStatus = {
3+
Available: "available",
4+
Unavailable: "unavailable",
5+
Loading: "loading",
6+
};
7+
module.exports = { ValueStatus };

packages/pluggable-widgets-tools/test-config/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
},
2525
moduleNameMapper: {
2626
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
27+
"^mendix$": join(__dirname, "__mocks__/mendix"),
2728
"mendix/components/web/Icon": join(__dirname, "__mocks__/WebIcon"),
2829
"mendix/filters/builders": join(__dirname, "__mocks__/FilterBuilders"),
2930
"\\.png$": join(__dirname, "assetsTransformer.js"),

0 commit comments

Comments
 (0)