Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/jest-resolve/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class Resolver {

static findNodeModule(path: Path, options: FindNodeModuleConfig): ?Path {
const resolver = options.resolver
/* $FlowFixMe */
? require(options.resolver)
? /* $FlowFixMe */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this one, /cc @vjeux

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, is this a regression from before?

It indeed looked better before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was in a single line before, it was multilined when I made it into a ternary

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you open an issue against prettier? We may be able to print it the way you want, we're already doing that for flow unions.

Copy link
Member Author

@SimenB SimenB Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require(options.resolver)
: defaultResolver;
const paths = options.paths;

Expand Down