Pm.expect is not working on newman

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

My question:
pm.expect is not working on newman
for example, pm.expect(1).to.eql(0); would fail in postman
but if i run it in newman the test just passes

I think I know why the expect failed, it was inside a cookieJar.getAll(url, (err, cookies) => { }
How can I make it work inside it though?