Skip to content

Commit

Permalink
Merge pull request #302 from COS301-SE-2024/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Keanumrc authored Aug 9, 2024
2 parents fa7f06a + 429c4bf commit 2b8bd6d
Show file tree
Hide file tree
Showing 12 changed files with 1,920 additions and 334 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests-code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
echo SUPABASE_KEY = ${{ secrets.SUPABASE_ANON_KEY }} >> .env
echo SUPABASE_SERVICE_KEY = ${{ secrets.SUPABASE_SERVICE_ROLE_KEY}} >> .env
echo SUPABASE_JWT_SECRET = ${{ secrets.SUPABASE_JWT_SECRET }} >> .env
echo UNI_KEY = ${{ secrets.UNI_KEY }} >> .env
cat .env
working-directory: query-builder-backend
- name: Coverage Test Backend
Expand Down
7 changes: 6 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
ignore:
- "**.stories.tsx"
- "**.stories.tsx"
- "query-builder-backend/src/all-exceptions.filter.ts"
- "query-builder-backend/src/main.ts"
- "query-builder-backend/src/app.module.ts"
- "query-builder-backend/src/app.controller.ts"
- "query-builder-backend/src/app.service.ts"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"install-deps": "cd query-builder-app && pnpm install && cd ../query-builder-docs && pnpm install"
},
"dependencies": {
"@nestjs/config": "^3.2.3"
}
}
2 changes: 2 additions & 0 deletions query-builder-app/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default defineConfig({
environment: 'jsdom',
coverage: {
reporter: ['text', 'json', 'html', 'lcov'],
include: ['src/components/**/*'],
exclude: ['src/components/stories/**/*'],
},
},
})
11 changes: 9 additions & 2 deletions query-builder-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"prettier": "^3.3.2",
"source-map-support": "^0.5.21",
"supertest": "^6.3.4",
Expand All @@ -81,9 +82,15 @@
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
"**/*.(t|j)s",
"!main.ts",
"!all-exceptions.filter.ts"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
"testEnvironment": "node",
"coveragePathIgnorePatterns": [
"src/main.ts",
"src/all-exceptions.filter.ts"
]
}
}
Loading

0 comments on commit 2b8bd6d

Please sign in to comment.