mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Fix database
This commit is contained in:
@@ -8,6 +8,7 @@ cache:
|
||||
paths:
|
||||
- .pip-cache/
|
||||
- venv/
|
||||
- frontend/node_modules/
|
||||
|
||||
stages:
|
||||
- test
|
||||
@@ -30,9 +31,15 @@ test-backend:
|
||||
test-frontend:
|
||||
stage: test
|
||||
image: node:18
|
||||
cache:
|
||||
paths:
|
||||
- frontend/node_modules/
|
||||
key:
|
||||
files:
|
||||
- frontend/package-lock.json
|
||||
before_script:
|
||||
- cd frontend
|
||||
- npm install
|
||||
- npm ci
|
||||
script:
|
||||
- npm run test
|
||||
rules:
|
||||
|
@@ -1,31 +1,39 @@
|
||||
{
|
||||
"name": "admin-portal",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"name": "employee-request-system-frontend",
|
||||
"version": "1.0.0",
|
||||
"description": "Frontend for Employee Request System",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && vite build",
|
||||
"preview": "vite preview"
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "echo \"No tests yet - this is a placeholder for future tests\" && exit 0",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vueuse/core": "^10.9.0",
|
||||
"axios": "^1.6.2",
|
||||
"chart.js": "^4.4.1",
|
||||
"lucide-vue-next": "^0.344.0",
|
||||
"pinia": "^2.1.7",
|
||||
"vue": "^3.4.21",
|
||||
"vue-router": "^4.3.0"
|
||||
"@emotion/react": "^11.11.3",
|
||||
"@emotion/styled": "^11.11.0",
|
||||
"@mui/material": "^5.15.3",
|
||||
"@mui/icons-material": "^5.15.3",
|
||||
"axios": "^1.6.5",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.21.1",
|
||||
"react-scripts": "5.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@types/node": "^20.17.11",
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"autoprefixer": "^10.4.18",
|
||||
"postcss": "^8.4.35",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^5.1.4",
|
||||
"vue-tsc": "^2.0.6"
|
||||
"@testing-library/jest-dom": "^5.17.0",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@testing-library/user-event": "^13.5.0"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
6
frontend/src/App.test.js
Normal file
6
frontend/src/App.test.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import App from './App';
|
||||
|
||||
test('renders without crashing', () => {
|
||||
render(<App />);
|
||||
});
|
Reference in New Issue
Block a user