Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
jest-serializer-ansi-escapes
(#161)
- Loading branch information
1 parent
7ace486
commit a0ac757
Showing
7 changed files
with
214 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 changes: 81 additions & 77 deletions
158
src/file_name_plugin/__tests__/__snapshots__/plugin.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,131 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`can select a pattern that matches multiple files 1`] = ` | ||
[MOCK - cursorLeft] | ||
pattern › f | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
"<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> f | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 3 files | ||
› src/foo.js | ||
› src/file-1.js | ||
› src/file-2.js | ||
[MOCK - cursorTo(12, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>f</><dim>oo.js</> | ||
[MOCK - cursorLeft] | ||
<dim>›</> <dim>src/</></>f</><dim>ile-1.js</> | ||
pattern › fi | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
<dim>›</> <dim>src/</></>f</><dim>ile-2.js</> | ||
<moveCursorToRow6Column13> | ||
<restoreCursorPosition> | ||
<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> fi | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 2 files | ||
› src/file-1.js | ||
<dim>›</> <dim>src/</></>fi</><dim>le-1.js</> | ||
› src/file-2.js | ||
[MOCK - cursorTo(13, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>fi</><dim>le-2.js</> | ||
<moveCursorToRow6Column14> | ||
<restoreCursorPosition> | ||
" | ||
`; | ||
exports[`can use arrows to select a specific file 1`] = ` | ||
[MOCK - cursorLeft] | ||
pattern › f | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
"<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> f | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 3 files | ||
› src/foo.js | ||
› src/file-1.js | ||
<dim>›</> <dim>src/</></>f</><dim>oo.js</> | ||
› src/file-2.js | ||
[MOCK - cursorTo(12, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>f</><dim>ile-1.js</> | ||
[MOCK - cursorLeft] | ||
pattern › fi | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
<dim>›</> <dim>src/</></>f</><dim>ile-2.js</> | ||
<moveCursorToRow6Column13> | ||
<restoreCursorPosition> | ||
<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> fi | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 2 files | ||
› src/file-1.js | ||
› src/file-2.js | ||
[MOCK - cursorTo(13, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>fi</><dim>le-1.js</> | ||
[MOCK - cursorLeft] | ||
pattern › fi | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
<dim>›</> <dim>src/</></>fi</><dim>le-2.js</> | ||
<moveCursorToRow6Column14> | ||
<restoreCursorPosition> | ||
<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> fi | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 2 files | ||
› src/file-1.js | ||
<dim>›</> <black><backgroundYellow>src/file-1.js</></> | ||
› src/file-2.js | ||
[MOCK - cursorTo(13, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>fi</><dim>le-2.js</> | ||
<moveCursorToRow6Column14> | ||
<restoreCursorPosition> | ||
" | ||
`; | ||
exports[`file matching is case insensitive 1`] = ` | ||
[MOCK - cursorLeft] | ||
pattern › fI | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
"<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> fI | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Pattern matches 2 files | ||
› src/file-1.js | ||
<dim>›</> <dim>src/</></>fi</><dim>le-1.js</> | ||
› src/file-2.js | ||
[MOCK - cursorTo(13, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<dim>›</> <dim>src/</></>fi</><dim>le-2.js</> | ||
<moveCursorToRow6Column14> | ||
<restoreCursorPosition> | ||
" | ||
`; | ||
exports[`shows the correct initial state 1`] = ` | ||
[MOCK - cursorHide] | ||
[MOCK - clear] | ||
Pattern Mode Usage | ||
› Press Esc to exit pattern mode. | ||
› Press Enter to filter by a filenames regex pattern. | ||
"<hideCursor> | ||
<clearTerminal> | ||
[MOCK - cursorShow] | ||
<bold>Pattern Mode Usage</> | ||
<dim>› Press</> Esc <dim>to exit pattern mode.</> | ||
<dim>› Press</> Enter <dim>to filter by a filenames regex pattern.</> | ||
[MOCK - cursorLeft] | ||
pattern › | ||
[MOCK - cursorSavePosition] | ||
[MOCK - cursorLeft] | ||
<showCursor> | ||
<eraseLine> | ||
<moveCursorToColumn1> | ||
<eraseScreenDown> | ||
<dim> pattern ›</> | ||
<saveCursorPosition> | ||
<moveCursorToColumn1> | ||
Start typing to filter by a filename regex pattern. | ||
[MOCK - cursorTo(11, 5)] | ||
[MOCK - cursorRestorePosition] | ||
<italic><yellow>Start typing to filter by a filename regex pattern.</></> | ||
<moveCursorToRow6Column12> | ||
<restoreCursorPosition> | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.