CodeForBc / codeforbc-web

https://codeforbc-web.vercel.app
2 stars 0 forks source link

[Tests] Update tests to be passing again #46

Closed CorreyL closed 5 months ago

CorreyL commented 5 months ago

Fixes #44

Code coverage isn't at 100%, but we can at least safely turn tests back on for GitHub Actions.

$ npm run test

> codeforbc-web@0.1.0 test
> jest

   Using tsconfig file: ./tsconfig.json
 PASS  src/client-services/github.client-service.test.tsx
 PASS  src/utils/get-project-status-color/get-project-status-color.test.tsx
 PASS  src/utils/get-local-project-data/get-local-project-data.test.tsx
 PASS  src/__tests__/github.mapping.test.ts
 PASS  src/app/page.test.tsx
 PASS  src/__tests__/header.snapshot.tsx
 PASS  src/components/project-overview/project-overview.test.tsx
 PASS  src/app/_component/home-page.test.tsx
 PASS  src/app/projects/projects.page.test.tsx
 PASS  src/components/header/header.test.tsx
 PASS  src/app/about/about.page.test.tsx
 PASS  src/components/banner/banner.test.tsx                                                                                                                                                                                    
 PASS  src/app/join-us/join-us.page.test.tsx
--------------------------------|---------|----------|---------|---------|-------------------
File                            | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
--------------------------------|---------|----------|---------|---------|-------------------
All files                       |   89.94 |    85.71 |   88.37 |    91.3 |                   
 app                            |   35.71 |      100 |      50 |   30.76 |                   
  layout.tsx                    |       0 |      100 |       0 |       0 | 1-14              
  page.tsx                      |     100 |      100 |     100 |     100 |                   
 app/_component                 |     100 |      100 |     100 |     100 |                                                                                                                                                      
  home-page.tsx                 |     100 |      100 |     100 |     100 |                                                                                                                                                      
 app/about                      |   92.85 |      100 |     100 |     100 |                                                                                                                                                      
  page.tsx                      |   92.85 |      100 |     100 |     100 |                   
 app/join-us                    |   92.85 |      100 |     100 |     100 | 
  page.client.tsx               |     100 |      100 |     100 |     100 | 
  page.tsx                      |      80 |      100 |     100 |     100 | 
 app/projects                   |      90 |      100 |     100 |     100 | 
  page.tsx                      |      90 |      100 |     100 |     100 | 
 client-services                |     100 |       50 |     100 |     100 | 
  github.client-service.ts      |     100 |       50 |     100 |     100 | 29
 components/banner              |     100 |      100 |     100 |     100 | 
  banner.tsx                    |     100 |      100 |     100 |     100 | 
 components/core-values         |     100 |      100 |     100 |     100 | 
  core-values-data.tsx          |     100 |      100 |     100 |     100 | 
  core-values.tsx               |     100 |      100 |     100 |     100 | 
 components/faq                 |     100 |      100 |     100 |     100 | 
  faq-data.tsx                  |     100 |      100 |     100 |     100 | 
  faq.tsx                       |     100 |      100 |     100 |     100 | 
 components/footer              |       0 |      100 |       0 |       0 | 
  footer.tsx                    |       0 |      100 |       0 |       0 | 3-88
 components/header              |    90.9 |      100 |      60 |      90 | 
  header-data.tsx               |     100 |      100 |     100 |     100 | 
  header.tsx                    |   89.47 |      100 |      60 |   88.88 | 26,30
 components/join-us-tab         |   94.11 |       50 |      75 |   93.33 | 
  join-us-tab-data.tsx          |     100 |      100 |     100 |     100 | 
  join-us-tab.tsx               |    92.3 |       50 |      75 |    92.3 | 21
 components/project-card        |     100 |      100 |     100 |     100 | 
  project-card.tsx              |     100 |      100 |     100 |     100 | 
 components/project-overview    |     100 |       50 |     100 |     100 | 
  project-overview.tsx          |     100 |       50 |     100 |     100 | 11
 components/question-and-answer |     100 |      100 |     100 |     100 | 
  question-and-answer.tsx       |     100 |      100 |     100 |     100 | 
 components/team-bio-card       |     100 |      100 |     100 |     100 | 
  team-bio-card.tsx             |     100 |      100 |     100 |     100 | 
 mapper                         |     100 |      100 |     100 |     100 | 
  github.mapping.ts             |     100 |      100 |     100 |     100 | 
 utils/get-local-project-data   |     100 |      100 |     100 |     100 | 
  get-local-project-data.tsx    |     100 |      100 |     100 |     100 | 
 utils/get-project-status-color |     100 |      100 |     100 |     100 | 
  get-project-status-color.tsx  |     100 |      100 |     100 |     100 | 
 utils/get-team-members-data    |     100 |      100 |     100 |     100 | 
  get-team-members-data.tsx     |     100 |      100 |     100 |     100 | 
--------------------------------|---------|----------|---------|---------|-------------------

Test Suites: 13 passed, 13 total
Tests:       28 passed, 28 total
Snapshots:   1 passed, 1 total
Time:        5.331 s
Ran all test suites.
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codeforbc-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2024 10:49pm