@commercetools-frontend/jest-preset-mc-app 27.4.1 → 27.5.0

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.
package/AGENTS.md ADDED
@@ -0,0 +1,23 @@
1
+ # jest-preset-mc-app
2
+
3
+ See root `AGENTS.md` for monorepo-wide context.
4
+
5
+ ## Purpose
6
+
7
+ Jest preset providing default configuration (transforms, module mappers, setup files, environment) for testing Merchant Center Custom Applications and Custom Views.
8
+
9
+ ## Key Context
10
+
11
+ - Two presets are exposed: `jest-preset.js` (JavaScript-only, `testRegex: \.spec\.jsx?$`) and `typescript/jest-preset.js` (adds `.ts`/`.tsx` extensions). The `jest-preset-for-typescript.js` at root is a backwards-compatibility alias for the TypeScript variant.
12
+ - Configuration is customizable via cosmiconfig (`jest-preset-mc-app` key in `package.json` or a dedicated config file) — see `load-config.js` for the merge logic.
13
+ - Setup files (`setup-tests.js`, `setup-test-framework.js`) install polyfills, configure `@testing-library/jest-dom`, and apply console-warning silencing based on the loaded config.
14
+
15
+ ## How To Work Here
16
+
17
+ Root commands apply. This package has no tests of its own.
18
+
19
+ ## Gotchas
20
+
21
+ - This package is **excluded from preconstruct** — all files are plain JS consumed directly via `require()`. There is no build step and no `dist/` directory.
22
+ - The `module-exports-resolver.js` is a custom Jest resolver — changes to it affect module resolution for every downstream test suite.
23
+ - The `transform-babel-jest.js` file wires `babel-jest` to `@commercetools-frontend/babel-preset-mc-app` — changes to the babel preset options here must stay compatible with the preset's `create.js` API.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @commercetools-frontend/jest-preset-mc-app
2
2
 
3
+ ## 27.5.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @commercetools-frontend/babel-preset-mc-app@27.5.0
9
+
10
+ ## 27.4.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @commercetools-frontend/babel-preset-mc-app@27.4.2
16
+
3
17
  ## 27.4.1
4
18
 
5
19
  ### Patch Changes
package/CLAUDE.md ADDED
@@ -0,0 +1,4 @@
1
+ # Claude Code Configuration
2
+
3
+ Read `AGENTS.md` for full project context. This package is part of the monorepo
4
+ — see the root `AGENTS.md` for monorepo-wide commands and conventions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/jest-preset-mc-app",
3
- "version": "27.4.1",
3
+ "version": "27.5.0",
4
4
  "description": "Jest preset used by a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "module": "./jest-preset.js",
24
24
  "dependencies": {
25
25
  "@babel/core": "^7.22.17",
26
- "@commercetools-frontend/babel-preset-mc-app": "27.4.1",
26
+ "@commercetools-frontend/babel-preset-mc-app": "27.5.0",
27
27
  "@formatjs/intl-getcanonicallocales": "^2.2.1",
28
28
  "@formatjs/intl-listformat": "^7.4.1",
29
29
  "@formatjs/intl-locale": "^3.3.3",