cypress-qase-reporter 2.2.2 → 2.2.3
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/changelog.md +14 -2
- package/dist/mocha.js +4 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
# cypress-qase-reporter@2.2.3
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
Fixed an issue with the `@cypress/grep` plugin. When the `grepOmitFiltered` option is set to `true`, the reporter
|
|
6
|
+
encounters an error.
|
|
7
|
+
|
|
8
|
+
```log
|
|
9
|
+
Cannot set properties of undefined (setting 'title')
|
|
10
|
+
```
|
|
11
|
+
|
|
1
12
|
# cypress-qase-reporter@2.2.2
|
|
2
13
|
|
|
3
14
|
## What's new
|
|
4
15
|
|
|
5
|
-
Fixed an issue with metadata. When specifying the path to the Cypress config located outside the root directory,
|
|
16
|
+
Fixed an issue with metadata. When specifying the path to the Cypress config located outside the root directory,
|
|
17
|
+
metadata was not added to the test case.
|
|
6
18
|
|
|
7
19
|
# cypress-qase-reporter@2.2.1
|
|
8
20
|
|
|
@@ -12,7 +24,7 @@ When specifying test names, QaseIDs are now excluded from the final test name.
|
|
|
12
24
|
|
|
13
25
|
```js
|
|
14
26
|
// The test name will be 'Example', not 'Example (Qase ID: 1)'
|
|
15
|
-
qase(1,it('Example', () => {
|
|
27
|
+
qase(1, it('Example', () => {
|
|
16
28
|
expect(true).to.equal(true);
|
|
17
29
|
})
|
|
18
30
|
);
|
package/dist/mocha.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.qase = void 0;
|
|
4
4
|
const qase = (caseId, test) => {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
6
|
+
if (!test?.title) {
|
|
7
|
+
return test;
|
|
8
|
+
}
|
|
5
9
|
const caseIds = Array.isArray(caseId) ? caseId : [caseId];
|
|
6
10
|
test.title = `${test.title} (Qase ID: ${caseIds.join(',')})`;
|
|
7
11
|
return test;
|