@testomatio/reporter 0.8.0-beta.10 → 0.8.0-beta.11

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/lib/client.js CHANGED
@@ -1,4 +1,3 @@
1
- const axios = require('axios');
2
1
  const createCallsiteRecord = require('callsite-record');
3
2
  const { sep, join } = require('path');
4
3
  const fs = require('fs');
@@ -23,7 +22,6 @@ class TestomatClient {
23
22
  const store = {}
24
23
  this.pipes = pipesFactory(params, store);
25
24
  this.queue = Promise.resolve();
26
- this.axios = axios.create();
27
25
  this.totalUploaded = 0;
28
26
  this.version = JSON.parse(fs.readFileSync(join(__dirname, '..', 'package.json')).toString()).version;
29
27
  console.log(APP_PREFIX, `Testomatio Reporter v${this.version}`);
@@ -1,8 +1,9 @@
1
+ const path = require('path');
1
2
  const chalk = require('chalk');
3
+ const merge = require('lodash.merge');
2
4
  const { Octokit } = require("@octokit/rest");
3
5
  const { APP_PREFIX } = require('../constants');
4
6
  const { ansiRegExp, isSameTest } = require('../util');
5
- const merge = require('lodash.merge');
6
7
 
7
8
 
8
9
  class GitHubPipe {
@@ -103,8 +104,9 @@ class GitHubPipe {
103
104
  if (t.stack) text += "```diff\n" + t.stack.replace(ansiRegExp(), '').trim() + "\n```\n";
104
105
 
105
106
  if (t.artifacts && t.artifacts.length && !process.env.TESTOMATIO_PRIVATE_ARTIFACTS) {
106
- t.artifacts.filter(f => f.endsWith('.png')).forEach(f => {
107
+ t.artifacts.filter(f => !!f).filter(f => f.endsWith('.png')).forEach(f => {
107
108
  if (f.endsWith('.png')) return text+= `![](${f})\n`
109
+ return text+= `[📄 ${path.basename(f)}](${f})\n`
108
110
  });
109
111
  }
110
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.8.0-beta.10",
3
+ "version": "0.8.0-beta.11",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",