codeceptjs 3.7.5-beta.12 → 3.7.5-beta.13
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.
|
@@ -215,10 +215,10 @@ async function runWithoutWorkers(config, options, testPatterns, failedTestsData,
|
|
|
215
215
|
const Container = require('../container')
|
|
216
216
|
const mocha = Container.mocha()
|
|
217
217
|
|
|
218
|
-
// Filter suites to only include tests with matching
|
|
218
|
+
// Filter suites to only include tests with exact matching titles
|
|
219
219
|
for (const suite of mocha.suite.suites) {
|
|
220
220
|
suite.tests = suite.tests.filter(test => {
|
|
221
|
-
return options.exactTestTitles.
|
|
221
|
+
return options.exactTestTitles.some(title => title === test.title)
|
|
222
222
|
})
|
|
223
223
|
}
|
|
224
224
|
|
package/lib/workers.js
CHANGED
|
@@ -322,9 +322,9 @@ class Workers extends EventEmitter {
|
|
|
322
322
|
if (targetTests && targetTests.length > 0) {
|
|
323
323
|
shouldInclude = targetTests.includes(test.uid)
|
|
324
324
|
}
|
|
325
|
-
// If we have exact test titles, only include tests with matching titles
|
|
325
|
+
// If we have exact test titles, only include tests with exact matching titles
|
|
326
326
|
else if (exactTestTitles && exactTestTitles.length > 0) {
|
|
327
|
-
shouldInclude = exactTestTitles.
|
|
327
|
+
shouldInclude = exactTestTitles.some(title => title === test.title)
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
if (shouldInclude) {
|