dillon1000/react
Commit
Browse files [compiler][snap] Fix for filter mode with nested files, 'error.' prefix (#35215)
Fixes some issues i ran into w my recent snap changes: * Correctly match against patterns that contain subdirectories, eg `fbt/fbt-call` * When checking if the input pattern has an extension, only prune known supported extensions. Our convention of `error.<name>` for fixtures that error makes the rest of the test name look like an extension to `path.extname()`. Tested with lots of different patterns including `error.` examples at the top level and in nested directories, etc.
Changed paths1 file
First-parent comparisoncompiler/packages/snap/src/fixture-utils.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…