@sprucelabs/jest-sheets-reporter 1.3.122 → 1.3.123
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/README.md +3 -1
- package/build/adapters/GoogleAdapter.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,9 @@ npm install --dev @sprucelabs/jest-sheets-reporter
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Example Jest config
|
|
17
|
+
Inside your `package.json` there is a `jest` block.
|
|
17
18
|
|
|
19
|
+
Add the following configuration:
|
|
18
20
|
```json
|
|
19
21
|
"jest": {
|
|
20
22
|
"reporters": [
|
|
@@ -23,7 +25,7 @@ npm install --dev @sprucelabs/jest-sheets-reporter
|
|
|
23
25
|
"@sprucelabs/jest-sheets-reporter",
|
|
24
26
|
{
|
|
25
27
|
"sheetId": "{{spreadsheetId}}",
|
|
26
|
-
"worksheetId":
|
|
28
|
+
"worksheetId": 0,
|
|
27
29
|
"testMap": {
|
|
28
30
|
"testName": "destinationCell",
|
|
29
31
|
"getsGoodHealthCheckAndNothingElse": "C5",
|
|
@@ -44,9 +44,11 @@ class SheetsReporterGoogleAdapter {
|
|
|
44
44
|
}
|
|
45
45
|
catch (err) {
|
|
46
46
|
if (operation.retry(err)) {
|
|
47
|
+
console.error('Sheets reporter error', err);
|
|
47
48
|
return;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
const error = operation.mainError();
|
|
51
|
+
reject(error);
|
|
50
52
|
}
|
|
51
53
|
});
|
|
52
54
|
}
|
package/package.json
CHANGED