Skip to content

Commit d712b5a

Browse files
authored
[]: Add support for enzyme-free Jest testing configuration (#127)
## Checklist - Did you update version and changelog? ✅ ❌ - PR title properly formatted (`[XX-000]: description`)? ✅ ❌ ## This PR contains - [ ] Bug fix - [X] Feature - [ ] Refactor - [ ] Documentation - [ ] Other (describe) ## What is the purpose of this PR? Add a new command for enzyme-free unit testing. ## Relevant changes ## What should be covered while testing? ## Extra comments (optional)
2 parents 56b5ff9 + ea97e80 commit d712b5a

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/pluggable-widgets-tools/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- We added enzyme-free unit test command in scripts.
12+
913
## [10.21.0] - 2025-03-27
1014

1115
### Added

packages/pluggable-widgets-tools/bin/mx-scripts.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ function getRealCommand(cmd, toolsRoot) {
9090
return `jest --projects "${join(toolsRoot, "test-config/jest.config.js")}"`;
9191
case "test:unit:native":
9292
return `jest --projects "${join(toolsRoot, "test-config/jest.native.config.js")}"`;
93+
case "test:unit:web:enzyme-free":
94+
return `jest --projects "${join(toolsRoot, "test-config/jest.enzyme-free.config.js")}"`;
9395
case "test:e2e":
9496
case "test:e2e:ts":
9597
case "test:e2e:web:cypress":

packages/pluggable-widgets-tools/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pluggable-widgets-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mendix/pluggable-widgets-tools",
3-
"version": "10.21.0",
3+
"version": "10.21.1",
44
"description": "Mendix Pluggable Widgets Tools",
55
"engines": {
66
"node": ">=20"

0 commit comments

Comments
 (0)