#cat 1.test.ts
const Name = Cypress.env('file');
cy.exec('ls ${fileName}', { failOnNonZeroExit: true });
I'm writing my tests using Typescript on Cypress. I'm executing a shell command through cy.exec().
While executing ls ${fileName}, the fileName variable doesn't get substituted with the value from Name. Could someone help me with this ?