Usage patterns
〈場所〉で一夜を過ごすto spend a night (somewhere)
The two of them spent a night at the mountain cabin.
一夜にして〈動詞〉to happen overnight, in the span of one night
He became a celebrity overnight.
一夜が明けるfor the night to end, for dawn to break
The long night finally came to an end.