cy.readFile is a function to register a command on the cypress command loop. This command loop does not run while tests are not running. Thus the promise generate by cy.readFile will never resolve when called outside of an executing test. The solution is to bypass the command loop and call directly the underlying api.
cy.readFile
is a function to register a command on the cypress command loop. This command loop does not run while tests are not running. Thus the promise generate bycy.readFile
will never resolve when called outside of an executing test. The solution is to bypass the command loop and call directly the underlying api.Fixes also #121 hopefully.