Skip to content

Commit

Permalink
feature: formatter-progress-bar: get rid of WebStorm hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 4, 2024
1 parent 456ab76 commit a61477a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions packages/formatter-progress-bar/lib/progress-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,5 @@ function _createProgress({total, color, test}) {
}

function formatSkip(skiped) {
const {TERMINAL_EMULATOR} = process.env;
const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? '' : ' ';

return `# ${WARNING}${spaces}skip ${skiped}`;
return `# ${WARNING} skip ${skiped}`;
}
4 changes: 2 additions & 2 deletions packages/formatter-progress-bar/lib/progress-bar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ test('supertape: format: progress bar: skip', async (t) => {
1..0
# tests 0
# pass 0
# ⚠️ skip 1
# ⚠️ skip 1
# ✅ ok
`;
Expand Down Expand Up @@ -255,7 +255,7 @@ test('supertape: format: progress bar: skip: webstorm', async (t) => {
1..0
# tests 0
# pass 0
# ⚠️skip 1
# ⚠️ skip 1
# ✅ ok
`;
Expand Down

0 comments on commit a61477a

Please sign in to comment.