Skip to content

Commit 3d54835

Browse files
authored
Merge pull request #1202 from jescalada/1150-vitest-migration-from-service
refactor: migrate tests to Vitest + TS
2 parents 0b5f0b9 + 90b879a commit 3d54835

File tree

100 files changed

+10343
-9868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+10343
-9868
lines changed

.github/workflows/unused-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
node-version: '22.x'
2222
- name: 'Run depcheck'
2323
run: |
24-
npx depcheck --skip-missing --ignores="tsx,@babel/*,@commitlint/*,eslint,eslint-*,husky,mocha,ts-mocha,ts-node,concurrently,nyc,prettier,typescript,tsconfig-paths,vite-tsconfig-paths,@types/sinon,quicktype,history,@types/domutils"
24+
npx depcheck --skip-missing --ignores="tsx,@babel/*,@commitlint/*,eslint,eslint-*,husky,ts-node,concurrently,nyc,prettier,typescript,tsconfig-paths,vite-tsconfig-paths,quicktype,history,@types/domutils,@vitest/coverage-v8"
2525
echo $?
2626
if [[ $? == 1 ]]; then
2727
echo "Unused dependencies or devDependencies found"

config.schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@
434434
"password": {
435435
"type": "string",
436436
"description": "Password for the given `username`."
437+
},
438+
"searchBase": {
439+
"type": "string",
440+
"description": "Override baseDN to query for users in other OUs or sub-trees."
437441
}
438442
},
439443
"required": ["url", "baseDN", "username", "password"]
@@ -496,6 +500,14 @@
496500
"adminOnly": { "type": "boolean" },
497501
"loginRequired": { "type": "boolean" }
498502
}
503+
},
504+
"roleMapping": {
505+
"type": "object",
506+
"description": "Mapping of application roles to JWT claims. Each key is a role name, and its value is an object mapping claim names to expected values.",
507+
"additionalProperties": {
508+
"type": "object",
509+
"additionalProperties": { "type": "string" }
510+
}
499511
}
500512
},
501513
"additionalProperties": false

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export default defineConfig(
149149
],
150150
// allow for chai `expect().to.xyz`
151151
'@typescript-eslint/no-unused-expressions': 'off',
152+
'new-cap': ['error', { capIsNewExceptionPattern: '^express\\..*' }],
152153
},
153154
},
154155

0 commit comments

Comments
 (0)