After adding imports to the commands.ts
file, running tests results in errors.
However, in commands.ts
:
import 'cypress-localstorage-commands';
/* eslint-disable */
declare namespace Cypress {
interface Chainable<Subject = any> {
commandA();
commandB();
commandC();
}
}
The error message displayed is:
Module not found: Error: Can't resolve 'cypress-localstorage-commands' in 'C:...\cypress\support\commands\commands' resolve 'cypress-localstorage-commands' in 'C:...\cypress\support\commands'
Parsed request is a module using description file: C:...\angular\package.json (relative path: ./cypress/support/commands) Field 'browser' doesn't contain a valid alias configuration