Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option fileExtension #28

Closed
milahu opened this issue Nov 1, 2022 · 0 comments · Fixed by #29
Closed

add option fileExtension #28

milahu opened this issue Nov 1, 2022 · 0 comments · Fixed by #29

Comments

@milahu
Copy link
Contributor

milahu commented Nov 1, 2022

let me set the file extension of the snapshot file
to enable syntax highlighting in the github blob API

expect(output).toMatchFile(undefined, {
  fileExtension: ".tsx",
});

currently, the snapshot files have no extension

src/__tests__/__file_snapshots__/some-name-0
src/__tests__/__file_snapshots__/another-name-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant