diff options
| author | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-03-31 17:36:38 +0100 |
|---|---|---|
| committer | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-03-31 17:36:38 +0100 |
| commit | dac9dc1ae6b3531c93801360147100950a103692 (patch) | |
| tree | 7cf5dc9fb5cbc1528fb8c95284a4287278c217f7 /src/__tests__/navigation-test.tsx | |
| parent | 7a196010214db6a1789760958eee5228374a7745 (diff) | |
Higiene y proteccion de variables de entorno
Diffstat (limited to 'src/__tests__/navigation-test.tsx')
| -rw-r--r-- | src/__tests__/navigation-test.tsx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/__tests__/navigation-test.tsx b/src/__tests__/navigation-test.tsx deleted file mode 100644 index 4123ab7..0000000 --- a/src/__tests__/navigation-test.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { renderRouter, screen, fireEvent } from 'expo-router/testing-library'; -import React from "react"; -import { Text } from "react-native"; - -/** - * Mock mínimo de las rutas reales - * No renderiza toda la app, solo lo necesario - */ -describe("Navegación index → crearUsuario", () => { - it("navega a la pantalla Crear Usuario al pulsar el botón", async () => { - renderRouter( - { - index: require("../app/index").default, - crearUsuario: require("../app/crearUsuario").default, - }, - { - initialUrl: "/", - } - ); - - // Estamos en index - expect(screen.getByText("crear usuario")).toBeTruthy(); - - // Pulsamos el botón - fireEvent.press(screen.getByTestId("btn-crear-usuario")); - - // Ahora debe renderizarse crearUsuario - expect( - await screen.findByText("Crear Usuario") - ).toBeTruthy(); - }); -}); |