Skip to content

Commit

Permalink
chore: change cypress files to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Dec 5, 2024
1 parent 7fbd22c commit 0a3cb38
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
node_modules
dist
dist-v2
lib/cypress/videos
lib/cypress/screenshots
cypress/videos
cypress/screenshots
cypress/downloads
4 changes: 1 addition & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {

},
e2e: {},
});
Binary file not shown.
13 changes: 12 additions & 1 deletion cypress/support/commands.js → cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ***********************************************
// This example commands.js shows you how to
// This example commands.ts shows you how to
// create various custom commands and overwrite
// existing commands.
//
Expand All @@ -23,3 +23,14 @@
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })

// declare global {
// namespace Cypress {
// interface Chainable {
// login(email: string, password: string): Chainable<void>
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
2 changes: 1 addition & 1 deletion cypress/support/e2e.js → cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ***********************************************************
// This example support/index.js is processed and
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
Expand Down

0 comments on commit 0a3cb38

Please sign in to comment.