Rsr2425 commited on
Commit
fb17322
·
1 Parent(s): 787e2fd

Fixed broken frontend test

Browse files
Dockerfile CHANGED
@@ -35,4 +35,4 @@ EXPOSE 80 8000
35
  COPY start.sh /start.sh
36
  RUN chmod +x /start.sh
37
 
38
- CMD ["/start.sh"]
 
35
  COPY start.sh /start.sh
36
  RUN chmod +x /start.sh
37
 
38
+ CMD ["/start.sh"]
frontend/src/tests/App.test.tsx CHANGED
@@ -1,5 +1,6 @@
1
  import { render, screen } from '@testing-library/react';
2
  import userEvent from '@testing-library/user-event';
 
3
  import App from '../App';
4
 
5
  describe('App', () => {
 
1
  import { render, screen } from '@testing-library/react';
2
  import userEvent from '@testing-library/user-event';
3
+ import '@testing-library/jest-dom';
4
  import App from '../App';
5
 
6
  describe('App', () => {
frontend/tsconfig.json CHANGED
@@ -15,7 +15,12 @@
15
  "isolatedModules": true,
16
  "noEmit": true,
17
  "jsx": "react-jsx",
18
- "types": ["jest", "node"]
 
 
 
 
 
19
  },
20
  "include": ["src/**/*"],
21
  "exclude": ["node_modules"]
 
15
  "isolatedModules": true,
16
  "noEmit": true,
17
  "jsx": "react-jsx",
18
+ "types": [
19
+ "jest",
20
+ "node",
21
+ "@testing-library/jest-dom",
22
+ "@testing-library/user-event"
23
+ ]
24
  },
25
  "include": ["src/**/*"],
26
  "exclude": ["node_modules"]