'〜と思いきや': Unexpected Reversal ('Just When I Thought... Surprisingly!')
[Plain Form] + と思いきや (Startling reversal of an initial assumption)
'〜と思いきや' indicates that just when the speaker firmly expected a certain outcome, reality defied expectations with a completely startling, opposite turn of events ('just when I thought X, unexpectedly Y happened!').
⚠ Note: Dramatic narrative twist: Highlights the shock of an unexpected revelation.
雨が降るかと思いきや、青空が広がってきた。
Just when I thought it would pour with rain, clear blue skies opened up instead.
怒られるかと思いきや、逆に褒められて驚いた。
Just when I thought I was about to get scolded, I was praised instead and was so surprised.