Skip to content

Commit

Permalink
cambios
Browse files Browse the repository at this point in the history
  • Loading branch information
jul1oCesar0 committed Nov 6, 2024
1 parent 0f6a044 commit 6af4154
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/jest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
strategy:
matrix:
test_file:
- 'servicios.test.tsx'
- 'home.test.tsx'
- 'citas.test.tsx'
- 'barra.test.js'
- 'inicio.test.js'
- 'login.test.js'

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion src/test/barra.test.js → test/barra.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";
import { MemoryRouter } from "react-router-dom"; // Importa MemoryRouter
import Barra from "../components/Navegacion/barra"; // Ajusta la ruta según tu estructura de archivos
import Barra from "../src/components/Navegacion/barra"; // Ajusta la ruta según tu estructura de archivos
import "@testing-library/jest-dom";

describe("Barra de navegacion", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/test/inicio.test.js → test/inicio.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen, fireEvent } from '@testing-library/react';
import App from '../views/inicio'; // Ajusta la ruta según tu estructura de archivos
import App from '../src/views/inicio'; // Ajusta la ruta según tu estructura de archivos
import { MemoryRouter } from 'react-router-dom';
import '@testing-library/jest-dom';

Expand Down
4 changes: 2 additions & 2 deletions src/test/login.test.js → test/login.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import Login from '../views/iniciarS.jsx';
import { AuthProvider } from '../views/AuthContext';
import Login from '../src/views/iniciarS.jsx';
import { AuthProvider } from '../src/views/AuthContext.jsx';
import '@testing-library/jest-dom';

describe('Componente Login', () => {
Expand Down

0 comments on commit 6af4154

Please sign in to comment.