diff --git a/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md new file mode 100644 index 0000000000..7e2e5e0b32 --- /dev/null +++ b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md @@ -0,0 +1,45 @@ + +## Input + +```javascript +import { fbt } from "fbt"; + +function Component() { + const buttonLabel = () => { + if (!someCondition) { + return {"Purchase as a gift"}; + } else if ( + !iconOnly && + showPrice && + item?.current_gift_offer?.price?.formatted != null + ) { + return ( + + {"Gift | "} + + {item?.current_gift_offer?.price?.formatted} + + + ); + } else if (!iconOnly && !showPrice) { + return {"Gift"}; + } + }; + + return ( + +