mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Проверка 09.02.2025
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { render, screen } from '@testing-library/vue';
|
||||
import '@testing-library/jest-dom';
|
||||
import App from './App';
|
||||
import App from './App.vue';
|
||||
|
||||
test('renders app header', () => {
|
||||
render(<App />);
|
||||
render(App, { global: { stubs: ['router-view'] } });
|
||||
const headerElement = screen.getByText(/Employee Request System/i);
|
||||
expect(headerElement).toBeInTheDocument();
|
||||
});
|
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<router-view></router-view>
|
||||
<div>
|
||||
<h1>Employee Request System</h1>
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
1
frontend/src/setupTests.js
Normal file
1
frontend/src/setupTests.js
Normal file
@@ -0,0 +1 @@
|
||||
import '@testing-library/jest-dom';
|
Reference in New Issue
Block a user