Skip to content

Commit

Permalink
chore: ignore cypress folder and config
Browse files Browse the repository at this point in the history
  • Loading branch information
skippednote committed Sep 29, 2022
1 parent 6535903 commit 10e6f6d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 75 deletions.
14 changes: 1 addition & 13 deletions cypress.config.ts
@@ -1,22 +1,10 @@
import { defineConfig } from "cypress";

export default defineConfig({
projectId: "9d83ob",
env: {
// All of the future env code like username, database uri, etc
},
e2e: {
baseUrl: "http://localhost:3000",
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: "http://localhost:3000",
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
},

component: {
devServer: {
framework: "next",
bundler: "webpack",
},
},
});
5 changes: 5 additions & 0 deletions cypress/e2e/home.cy.ts
@@ -0,0 +1,5 @@
describe("homepage", () => {
it("it loads", () => {
cy.visit("/");
});
});
5 changes: 0 additions & 5 deletions cypress/e2e/spec.cy.ts

This file was deleted.

1 change: 1 addition & 0 deletions cypress/fixtures/example.json
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Expand Up @@ -34,4 +34,4 @@
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }
// }
14 changes: 0 additions & 14 deletions cypress/support/component-index.html

This file was deleted.

39 changes: 0 additions & 39 deletions cypress/support/component.ts

This file was deleted.

2 changes: 0 additions & 2 deletions jest.config.js
Expand Up @@ -4,13 +4,11 @@ const createJestConfig = nextJest({
dir: "./",
});

// Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
moduleDirectories: ["node_modules", "<rootDir>/"],
testEnvironment: "jest-environment-jsdom",
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = createJestConfig(customJestConfig);
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -40,6 +40,7 @@
"@tailwindcss/typography": "^0.5.7",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/node": "18.7.18",
"@types/react": "18.0.20",
"@typescript-eslint/eslint-plugin": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -22,5 +22,5 @@
"**/*.tsx",
"getContentfulEnvironment.js"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "cypress", "./cypress.config.ts"]
}
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -2924,6 +2924,11 @@
dependencies:
"@babel/runtime" "^7.12.5"

"@testing-library/user-event@^14.4.3":
version "14.4.3"
resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591"
integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q==

"@tootallnate/once@2":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
Expand Down

0 comments on commit 10e6f6d

Please sign in to comment.