From 822b0184f9d4a4af8ec441db1cac9d894bcfd4a9 Mon Sep 17 00:00:00 2001 From: Alex Nguyen Date: Fri, 26 Jan 2024 07:15:34 +1300 Subject: [PATCH] re-organized tests (#81) --- cypress.config.ts | 2 ++ {cypress => src/tests}/e2e/blog.cy.js | 0 {cypress => src/tests}/e2e/footer.cy.js | 0 {cypress => src/tests}/e2e/header.cy.js | 0 {cypress => src/tests}/e2e/search.cy.js | 0 {cypress => src/tests}/e2e/services.cy.js | 0 cypress/support/e2e.ts => src/tests/e2e/support.ts | 0 src/tests/{ => unit}/rss.test.js | 0 src/tests/{ => unit}/utils.test.js | 0 9 files changed, 2 insertions(+) rename {cypress => src/tests}/e2e/blog.cy.js (100%) rename {cypress => src/tests}/e2e/footer.cy.js (100%) rename {cypress => src/tests}/e2e/header.cy.js (100%) rename {cypress => src/tests}/e2e/search.cy.js (100%) rename {cypress => src/tests}/e2e/services.cy.js (100%) rename cypress/support/e2e.ts => src/tests/e2e/support.ts (100%) rename src/tests/{ => unit}/rss.test.js (100%) rename src/tests/{ => unit}/utils.test.js (100%) diff --git a/cypress.config.ts b/cypress.config.ts index c9a06fb..ec9bef0 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -3,6 +3,8 @@ import { defineConfig } from "cypress"; export default defineConfig({ e2e: { baseUrl: "http://localhost:4321", + specPattern: "src/tests/e2e/**/*.cy.{js,jsx,ts,tsx}", + supportFile: "src/tests/e2e/support.ts", fixturesFolder: false, screenshotOnRunFailure: false, video: false, diff --git a/cypress/e2e/blog.cy.js b/src/tests/e2e/blog.cy.js similarity index 100% rename from cypress/e2e/blog.cy.js rename to src/tests/e2e/blog.cy.js diff --git a/cypress/e2e/footer.cy.js b/src/tests/e2e/footer.cy.js similarity index 100% rename from cypress/e2e/footer.cy.js rename to src/tests/e2e/footer.cy.js diff --git a/cypress/e2e/header.cy.js b/src/tests/e2e/header.cy.js similarity index 100% rename from cypress/e2e/header.cy.js rename to src/tests/e2e/header.cy.js diff --git a/cypress/e2e/search.cy.js b/src/tests/e2e/search.cy.js similarity index 100% rename from cypress/e2e/search.cy.js rename to src/tests/e2e/search.cy.js diff --git a/cypress/e2e/services.cy.js b/src/tests/e2e/services.cy.js similarity index 100% rename from cypress/e2e/services.cy.js rename to src/tests/e2e/services.cy.js diff --git a/cypress/support/e2e.ts b/src/tests/e2e/support.ts similarity index 100% rename from cypress/support/e2e.ts rename to src/tests/e2e/support.ts diff --git a/src/tests/rss.test.js b/src/tests/unit/rss.test.js similarity index 100% rename from src/tests/rss.test.js rename to src/tests/unit/rss.test.js diff --git a/src/tests/utils.test.js b/src/tests/unit/utils.test.js similarity index 100% rename from src/tests/utils.test.js rename to src/tests/unit/utils.test.js