Dress rehearsal? Not so much, but the Knicks are as ready as they’re going to be for opening night.

The Knicks improved to a 1-4 preseason record with their 122-120 victory over the Toronto Raptors on Thursday, a game Josh Hart wound up as a late scratch due to a bout with ankle soreness. New York narrowly avoided becoming the first defending NBA champion to go winless (three or more games) in their ensuing preseason since 2002.

“Each game got better and better. Just happy to be back. I feel like it’s a learning experience for us,” team captain Jalen Brunson said in his walk-off interview. “We have to turn the page on last year and figure out how to get better every single day. It’s gonna be a different journey for us. Our mindset has to be different, and we’ll be ready to go.”

The tune-up games are now complete. Ready or not, the Knicks have four days to prepare before they go to war with the Philadelphia 76ers on Opening Night at Madison Square Garden on Tuesday.

Head coach Mike Brown made clear ahead of tipoff against the Raptors the regular-season outlook would feature a bumpy road.

“I’m going to keep it real that there’s something in front of us. I’m not a fan of having an elephant in the room. I’ll address it: It’s about the process. It’s not about the end result. We can’t think about the end result right now. We have a ways to go. This is a new season, new team and we’re gonna have challenges in front of us,” Brown said. “It’s like climbing a mountain. Sometimes you go a 100 yards, but you might get knocked back five yards. Hopefully, it’s not 50 yards, but you might get back five or 10 yards, and you regroup as a team, and you figure out how to keep going forward the right way.

“But making sure we embrace the process without slippage in that is going to be huge. And if I see us slipping up, it’s my job to let us know as a team that we’re off track. We need to get back on hopefully sooner than later.”

Without Hart, Brown started Mohamed Diawara in the front court.

Brunson finished with 20 points and seven assists on 7-of-15 shooting from the field, making his only attempt from behind the arc of the night. Karl-Anthony Towns sat on the doorstep of a preseason triple double with 13 points, 15 rebounds and nine assists to three turnovers, and Mikal Bridges added 14 points on six-of-nine shooting from the field.

Andre Drummond put up 14 points, eight rebounds and four assists. Landry Shamet added 13 points on mostly free throws and layups on a one-of-five shooting night from behind the arc.

Miles McBride and Jose Alvarado each scored nine points.