NEW YORK (TheStreet) -- Shares of Walmart  (WMT) were falling in mid-morning trading on Thursday, after the discount superstore reported mixed results for the 2017 third quarter before Thursday's opening bell. 

"Walmart has been given a pass because of all that they have to invest and I think the pass will continue," TheStreet's Jim Cramer said on CNBC's "Squawk on the Street" this morning. 

Cramer "hesitates" to advise people to base their call on Walmart's 2018 outlook since numbers are coming down short-term. However, the company is battling e-commerce giant (AMZN). 

"But I mean look, they've got a long-term plan to be able to stay in the game with Amazon," Cramer pointed out. "And it's too early to make a judgment that it's failing. That would be ridiculous." In August, Walmart agreed to buy competitor for $3.3 billion. 

Despite going head to head with the colossal online store, Walmart is still judged based on the earnings it delivers. Yet Amazon "was able to become Amazon because we never graded them on that," Cramer noted. "So Walmart is constrained by the four walls of the spreadsheet." 

Shares of Walmart competitor Target (TGT) were slightly lower in mid-morning trading on Thursday, after it reported a top and bottom line beat for the 2016 third quarter before Wednesday's opening bell. The results were down year-over-year. 

The call was "the most upbeat" Cramer has heard from Target in a long time, he noted. The company specifically mentioned how strong the sales of Apple (AAPL) products have been, which bumped up the tech company's stock yesterday. 

If you liked this article you might like

Amazon Roadkill; Northrop Deal Synergies -- Jim Cramer's Top Thoughts

Food Stocks Go Hungry; China Pressure -- Jim Cramer's Top Thoughts

7 Essential Rules for Investing in Tech Stocks

Walmart Will Start Offering Meal Kits on Its Website by December