ci-slack-reporter 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -109,7 +109,8 @@ class MyReporter {
109
109
  webhook.send(out)
110
110
  if (stats.failures) {
111
111
  out.attachments[0].blocks = out.attachments[0].blocks.filter(el => {
112
- return !el.text.text.startsWith(":white")
112
+ return !el?.text?.text?.startsWith(":white")
113
+
113
114
  })
114
115
  fails_only_webhook?.send(out)
115
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-slack-reporter",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Mocha/Cypress reporter to post tests results directly to Slack",
5
5
  "main": "index.js",
6
6
  "scripts": {