Sorry, it is a cy.ts, I jump from my project to real-world-app repo quite often and I mixed up the file names.
https://levelup.gitconnected.com/using-cypress-with-next-js-and-auth0-2dbe7282dcf this is the guide I was following, can you try following this guide? But no need to create an Auth0 account, just use the @hapi/iron the way it is showed with dummy data. The publisher used the mentioned library inside a command, and then that command used in a test file.