@supertape/formatter-progress-bar 6.0.0 → 6.0.1

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.
@@ -128,7 +128,7 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
128
128
  out(`# ❌ fail ${failed}`);
129
129
 
130
130
  if (!failed)
131
- out('# ✅ ok');
131
+ out(formatOk());
132
132
 
133
133
  out('');
134
134
  out('');
@@ -200,6 +200,13 @@ function _createProgress({total, color, test}) {
200
200
  return bar;
201
201
  }
202
202
 
203
+ function formatOk() {
204
+ const {TERMINAL_EMULATOR} = process.env;
205
+ const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? ' ' : '';
206
+
207
+ return `# ✅ ${spaces}ok`;
208
+ }
209
+
203
210
  function formatSkip(skiped) {
204
211
  return `# ${WARNING} skip ${skiped}`;
205
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-progress-bar",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape formatter progress bar",
6
6
  "homepage": "http://github.com/coderaiser/supertape",