Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
feat: add ts support
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Feb 12, 2022
1 parent 076b3e2 commit 59630d1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// If you're using ESLint on your project, we recommend installing the ESLint Cypress plugin instead:
// https://github.com/cypress-io/eslint-plugin-cypress

describe("Basic", () => {
describe("Basic spec", () => {
it("should render the main page", () => {
cy.visit("http://localhost:3000/");
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/plugins/index.js → cypress/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
export default (on: any, config: any) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
};
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"isolatedModules": false,
"types": ["cypress"]
},
"include": ["../node_modules/cypress", "./**/*.ts"]
}
Empty file removed cypress/videos/.gitignore
Empty file.
Binary file added cypress/videos/app.spec.ts.mp4
Binary file not shown.

0 comments on commit 59630d1

Please sign in to comment.