I use Cypress with custom commands and test cases.
I want to define some global enums in a file, e. g.:
enum MyEnum{
A = "hello",
B = "goodbye"
}
Now I want to use this enum in every file without import like this:
Cypress.Commands.add('testCommand', () =>
{
let myEnum = MyEnum.A;
})
or:
describe("example", () =>
{
it("example", () =>
{
let myEnum = MyEnum.A;
});
});
Is this possible?