From ac1f2f8d3ce0d02c17bcd03cd816e828777b8bb0 Mon Sep 17 00:00:00 2001 From: Harris Brakmic Date: Mon, 30 Dec 2024 15:24:55 +0000 Subject: [PATCH] feat: update packages and run scripts --- package.json | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 046ccc0..1344ede 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,19 @@ "description": "A Passport.js strategy for authenticating with Keycloak using the OAuth2/OIDC API", "main": "./lib/index.js", "scripts": { - "test": "make test" + "pretest:integration": "pnpx puppeteer browsers install chrome", + "test": "jest", + "test:integration": "jest --testPathPattern=./test/integration.test.js -- --detectOpenHandles", + "test:package": "jest --testPathPattern=./test/package.test.js", + "test:strategy": "jest --testPathPattern=./test/strategy.test.js", + "start:keycloak": "sudo docker compose -f test/bootstrap/keycloak/docker-compose.test.yml up -d --remove-orphans", + "stop:keycloak": "sudo docker compose -f test/bootstrap/keycloak/docker-compose.test.yml down", + "lint": "pnpx eslint .", + "start:mock-server": "node test/mock-server.js --port 3000 --callbackPath /callback" }, "repository": { "type": "git", - "url": "git+https://github.com/louie007/passport-keycloak-oauth2-oidc.git" + "url": "git+https://github.com/brakmic/passport-keycloak-oauth2-oidc.git" }, "keywords": [ "passport", @@ -27,9 +35,23 @@ "passport-oauth2": "^1.8.0" }, "devDependencies": { - "chai": "^5.1.2", - "chai-passport-strategy": "^3.0.0", + "@babel/core": "^7.26.0", + "@babel/preset-env": "^7.26.0", + "@eslint/js": "^9.17.0", + "axios": "^1.7.9", + "babel-jest": "^29.7.0", + "dotenv": "^16.4.7", + "eslint": "^9.17.0", + "eslint-plugin-jest": "^28.10.0", + "express": "^4.21.2", + "express-session": "^1.18.1", + "globals": "^15.14.0", + "jest": "^29.7.0", + "jsonwebtoken": "^9.0.2", "make-node": "^0.4.6", - "mocha": "^11.0.1" + "openid-client": "^5.1.0", + "passport": "^0.7.0", + "puppeteer": "^23.11.1", + "yargs": "^17.7.2" } }