Typescript Tests

This commit is contained in:
Sidharth Vinod
2021-05-29 13:48:01 +05:30
parent 67a3ed950a
commit 751b43eef4
6 changed files with 12 additions and 3 deletions
@@ -23,6 +23,15 @@
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
import * as snapshot from '@cypress/snapshot';
snapshot.register();
import { register } from '@cypress/snapshot';
register();
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
snapshot(): void;
}
}
}
import 'cypress-localstorage-commands';
+1 -1
View File
@@ -3,5 +3,5 @@
"allowJs": true,
"types": ["cypress", "cypress-localstorage-commands"]
},
"include": ["**/*.*"]
"include": ["**/*.ts"]
}