-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat: make prettier optional for inline snapshots #7792
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
Merged
Merged
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
6ba49b8
vscode auto-formatting. will revert eventually
mmkal ca8cc43
use string replacement rather than prettier to insert snapshots
mmkal 15701bf
make formatting go back to how it was?
mmkal 2658e2c
add end of file newline
mmkal 9aeac1a
fallback to @babel/parser when prettier isn't present
mmkal e9a2b07
use spyOn instead of $FlowFixMe mock
mmkal 9594ea2
update changelog
mmkal 3bc79e7
remove trailing whitespace
mmkal 1555d65
make sure snapshot creation works with property matchers and without …
mmkal cc921cc
lint
mmkal 0c2547e
use prettier --write
mmkal 69016b1
add @babel/parser as snapshot dependency
mmkal 716a620
prettier didn't take last time for some reason
mmkal dbb3bcf
shorten comment
mmkal 93bb88b
use the same plugins as prettier
mmkal 59c0cb1
Merge branch 'uglier-inline-snapshots' of https://github.com/mmkal/je…
mmkal ac57288
prettier fixes
mmkal bee86ee
Merge branch 'master' into uglier-inline-snapshots
mmkal 188d731
use loadPartialConfig from @babel/core rather than hard-coded list
mmkal 6ecb0a4
add @babel/core dependency
mmkal 2ed041e
Merge branch 'master' into uglier-inline-snapshots
mmkal 2f3f2e1
fix merge errors
mmkal 8c820d6
case test fake frames to Frame type
mmkal 5ef7328
make vscode stop messing up formatting
mmkal 741ca7f
use babel generate instead of hacky comma hacks
mmkal 4f5ea4b
use imports and flatten test.each
mmkal 4a4d86c
prettier fix #123532
mmkal a4d30a7
move changelog entry
mmkal f77b104
lint fixes
mmkal e94e95d
Merge branch 'master' into uglier-inline-snapshots
mmkal f5dd3d3
Merge branch 'master' into uglier-inline-snapshots
mmkal a102014
lint
mmkal 9215a44
prettier changelog
mmkal f9bbf05
Merge branch 'master' into uglier-inline-snapshots
mmkal c504dee
Merge branch 'master' into uglier-inline-snapshots
mmkal 97e609e
Merge branch 'master' into uglier-inline-snapshots
mmkal 3e92e6c
fix conflicts
mmkal 5f26766
add todo
mmkal eea3199
placeholder prettier formatting block
mmkal 442f1cd
reign in @babel/generate's creative license a bit
mmkal 121ddaf
run prettier twice ¯\_(ツ)_/¯
mmkal 9a46420
trim babel's creativity again
mmkal ae376f6
clean up
mmkal 38c3c32
prettier
mmkal b92f988
use Function to avoid fixing types all over the place
mmkal a8ce8c1
oops
mmkal 2d7d3b0
Merge branch 'master' into uglier-inline-snapshots
mmkal 173835e
Merge branch 'master' into uglier-inline-snapshots
mmkal 6fae9d1
prettier
mmkal 87d79d2
fix: remove callee property name check
mmkal c787b8d
prettier
mmkal 81d63aa
alphabetize imports
mmkal 5205259
move changelog entry to master
mmkal d97f6cf
check plugin is missing before adding
mmkal 127d492
prettier
mmkal 2ef0b1b
prettier
mmkal e0d50a5
prettier!
mmkal 4c39c17
Merge remote-tracking branch 'upstream/master' into uglier-inline-sna…
mmkal 11b2309
run yarn install to update lockfile
mmkal 49ae9ea
prettier
mmkal fa29eab
null check
mmkal 8262b0d
Merge branch 'master' into uglier-inline-snapshots
SimenB b4d7dd1
fix: lint issues
mmkal 22c1e4e
make @babel/* packages peerDependencies
mmkal 12393d7
oh dear more lint
mmkal 6d4815f
ah needed to update prettier locally
mmkal b2dfa56
I forgot lockfiles are kinda trustworthy now
mmkal 2bc8090
move generator, parser and traverse back to dependencies
mmkal 1b10dc8
Merge remote-tracking branch 'upstream/master' into uglier-inline-sna…
jeysal 5fe9929
require.resolve Babel syntax plugin
jeysal 449999d
correct changelog position
jeysal 5ae7f0f
extract runPrettier fn
jeysal 8ebb456
Babel parse correctly
jeysal 0d2ea99
dedupe babel deps
SimenB 355bde6
Update packages/jest-snapshot/src/inline_snapshots.ts
jeysal 26acdd0
plugin-syntax-typescript dep
jeysal 6f48559
preset current node syntax and dep cleanup
jeysal 784b3d7
babel core peer dep
jeysal 81f12a4
lint
jeysal dae5678
Merge branch 'master' into uglier-inline-snapshots
SimenB 27cf6e0
Merge remote-tracking branch 'upstream/master' into uglier-inline-sna…
jeysal 3f89b25
basic jest-runtime require.resolve test
jeysal eb5b9d3
implement require.resolve option outsideJestVm for internal modules only
jeysal e141ace
review improvements
jeysal faed042
lint
jeysal 49bed60
Merge branch 'runtime-require-resolve-outside' into uglier-inline-sna…
jeysal fc086cc
WIP require prettier/Babel from outsideJestVm
jeysal a2a05bd
use Symbol key for resolve option
jeysal a6d6d36
Merge branch 'runtime-require-resolve-outside' into uglier-inline-sna…
jeysal 7efccac
Update CHANGELOG.md
jeysal 13c960e
Merge branch 'master' into uglier-inline-snapshots
jeysal 06a7fb0
changelog merge
jeysal 478d8f6
merge fixup
jeysal b3e2f73
yarn.lock merge
jeysal f375ece
merge amends
jeysal a641fdd
merge amends
jeysal 81bc81e
semantic merge for test
jeysal be68e58
Merge branch 'master' into uglier-inline-snapshots
jeysal 36efffa
lint
jeysal c53a579
Merge branch 'master' into uglier-inline-snapshots
jeysal f261822
use babel stuff
jeysal 9651814
Merge branch 'master' into uglier-inline-snapshots
jeysal 857d5eb
ts-expect-error now needed because we no longer define the requireOut…
jeysal 7f97e87
prettier 2 devdep
jeysal d72b98f
types
jeysal 8364ca1
babel-preset-current-node-syntax v1
jeysal 5536359
jest-circus config is passed already
jeysal c4156b0
update snapshot formatting
jeysal b6327e4
use upstream types
SimenB 69f8f0d
remove obsolete circus deps
jeysal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.