jest-watch-typeahead 0.4.1 → 0.4.2

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.
@@ -58,7 +58,7 @@ const trimAndFormatPath = (pad, config, testPath, columns) => {
58
58
  } // can't fit dirname, but can fit trimmed basename
59
59
 
60
60
 
61
- return (0, _slash.default)(_chalk.default.bold(`${TRIMMING_DOTS}${basename.slice(basename.length - maxLength - 4, basename.length)}`));
61
+ return (0, _slash.default)(_chalk.default.bold(`${TRIMMING_DOTS}${basename.slice(-maxLength + 3)}`));
62
62
  };
63
63
 
64
64
  exports.trimAndFormatPath = trimAndFormatPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-watch-typeahead",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "main": "build/index.js",
5
5
  "author": "Rogelio Guzman <rogelioguzmanh@gmail.com>",
6
6
  "description": "Jest plugin for filtering by filename or test name",