Skip to content

Commit

Permalink
Login middleware refactor and tests (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonChong96 authored May 18, 2020
1 parent d9cb3eb commit 21e5e8d
Show file tree
Hide file tree
Showing 28 changed files with 1,101 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install:
script:
- npm run lint
- npm run build
- npm run test
- npm run test:ci

before_deploy:
# Workaround to run before_deploy only once
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# GoGovSG

[![Build Status](https://travis-ci.com/opengovsg/GoGovSG.svg?branch=develop)](https://travis-ci.com/opengovsg/GoGovSG) [![Coverage Status](https://coveralls.io/repos/github/opengovsg/GoGovSG/badge.svg?branch=develop)](https://coveralls.io/github/opengovsg/GoGovSG?branch=develop)

The official Singapore government link shortener.

## Content
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module.exports = {
testEnvironment: 'node',
coverageThreshold: {
global: {
statements: 10,
statements: 23,
},
},
collectCoverageFrom: ['./src/server/**/*.{ts,js}'],
coveragePathIgnorePatterns: ['./node_modules/', './test/'],
coverageReporters: [],
setupFiles: ['./test/server/setup.ts'],
}
256 changes: 247 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"server-dev": "nodemon --exec 'ts-node --files' src/server/index.ts",
"docker-dev": "concurrently \"npm run server-dev\" \"npm run client-dev\"",
"dev": "docker-compose -f docker-compose.yml up --build",
"test": "jest --collectCoverage"
"test": "jest --collectCoverage",
"test:ci": "jest --coverage && coveralls < coverage/lcov.info"
},
"author": "Yuanruo Liang",
"license": "",
Expand Down Expand Up @@ -92,8 +93,8 @@
"@types/express": "^4.16.1",
"@types/express-session": "^1.15.12",
"@types/helmet": "0.0.43",
"@types/lodash": "^4.14.150",
"@types/jest": "^25.2.1",
"@types/lodash": "^4.14.150",
"@types/morgan": "^1.7.35",
"@types/redis-mock": "^0.17.0",
"@types/sinon": "^9.0.0",
Expand All @@ -104,6 +105,7 @@
"clean-webpack-plugin": "^0.1.19",
"concurrently": "^4.0.0",
"copyfiles": "^2.2.0",
"coveralls": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.10.1",
Expand Down
Loading

0 comments on commit 21e5e8d

Please sign in to comment.