From f258bcb93c5b6ecf109126a4eefbd3623f1a8268 Mon Sep 17 00:00:00 2001 From: gabrielMatosBoubee Date: Mon, 2 Dec 2024 13:29:15 -0300 Subject: [PATCH] feat: tests done --- .github/workflows/workflow.yml | 3 +++ cypress.config.js | 7 +++++++ cypress.config.ts | 9 --------- 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 cypress.config.js delete mode 100644 cypress.config.ts diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8962c188..37427da8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -34,5 +34,8 @@ jobs: echo "Cypress Path: $(which cypress)" # Verifica o caminho onde o Cypress está instalado echo "Cypress version: $(cypress --version)" # Verifica a versão do Cypress + - name: Init localhost + run: deno task start + - name: Run tests run: deno task test-terminal diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 00000000..13b11873 --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,7 @@ +const { defineConfig } = require('cypress') + +module.exports = defineConfig({ + e2e: { + baseUrl: 'http://localhost:8000', + }, +}) \ No newline at end of file diff --git a/cypress.config.ts b/cypress.config.ts deleted file mode 100644 index 17161e32..00000000 --- a/cypress.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineConfig } from "cypress"; - -export default defineConfig({ - e2e: { - setupNodeEvents(on, config) { - // implement node event listeners here - }, - }, -});