@zohodesk/unit-testing-framework 0.0.19-experimental → 0.0.21-experimental
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.
|
@@ -81,10 +81,12 @@ function buildArgv(config, {
|
|
|
81
81
|
_: testFiles ?? [],
|
|
82
82
|
$0: 'unit-testing-framework'
|
|
83
83
|
};
|
|
84
|
+
|
|
85
|
+
// Jest 30 uses `testPathPatterns` (plural, array) instead of
|
|
86
|
+
// the old `testPathPattern` (singular, string) from Jest ≤29.
|
|
84
87
|
if (testPathPattern) {
|
|
85
|
-
argv.
|
|
88
|
+
argv.testPathPatterns = [testPathPattern];
|
|
86
89
|
}
|
|
87
|
-
console.log('Jest CLI argv:', argv);
|
|
88
90
|
return argv;
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -102,6 +104,5 @@ async function executeJest(argv, projectRoot) {
|
|
|
102
104
|
const {
|
|
103
105
|
results
|
|
104
106
|
} = await runCLI(argv, [projectRoot]);
|
|
105
|
-
console.log('Jest run results:', results);
|
|
106
107
|
return results;
|
|
107
108
|
}
|