test: add unit tests to pipeline

This commit is contained in:
2023-05-31 15:33:19 +02:00
parent 45444d9373
commit 495a63977c
29 changed files with 232 additions and 484 deletions

247
pnpm-lock.yaml generated
View File

@@ -107,9 +107,6 @@ importers:
'@openstapps/eslint-config':
specifier: workspace:*
version: link:../../configuration/eslint-config
'@openstapps/nyc-config':
specifier: workspace:*
version: link:../../configuration/nyc-config
'@openstapps/prettier-config':
specifier: workspace:*
version: link:../../configuration/prettier-config
@@ -177,8 +174,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -316,8 +313,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -494,8 +491,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -556,18 +553,12 @@ importers:
'@openstapps/eslint-config':
specifier: workspace:*
version: link:../../configuration/eslint-config
'@openstapps/nyc-config':
specifier: workspace:*
version: link:../../configuration/nyc-config
'@openstapps/prettier-config':
specifier: workspace:*
version: link:../../configuration/prettier-config
'@openstapps/tsconfig':
specifier: workspace:*
version: link:../../configuration/tsconfig
'@testdeck/mocha':
specifier: 0.3.3
version: 0.3.3
'@types/chai':
specifier: 4.3.5
version: 4.3.5
@@ -586,6 +577,9 @@ importers:
'@typescript-eslint/parser':
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -616,9 +610,6 @@ importers:
nock:
specifier: 13.3.1
version: 13.3.1
nyc:
specifier: 15.1.0
version: 15.1.0
prettier:
specifier: 2.8.6
version: 2.8.6
@@ -1163,8 +1154,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1210,6 +1201,9 @@ importers:
tsup:
specifier: 6.7.0
version: 6.7.0(ts-node@10.9.1)(typescript@4.8.4)
typedoc:
specifier: 0.24.7
version: 0.24.7(typescript@4.8.4)
typescript:
specifier: 4.8.4
version: 4.8.4
@@ -1241,8 +1235,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1273,6 +1267,9 @@ importers:
tsup:
specifier: 6.7.0
version: 6.7.0(ts-node@10.9.1)(typescript@4.8.4)
typedoc:
specifier: 0.24.7
version: 0.24.7(typescript@4.8.4)
typescript:
specifier: 4.8.4
version: 4.8.4
@@ -1341,8 +1338,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1382,6 +1379,9 @@ importers:
tsup:
specifier: 6.7.0
version: 6.7.0(ts-node@10.9.1)(typescript@4.8.4)
typedoc:
specifier: 0.24.7
version: 0.24.7(typescript@4.8.4)
typescript:
specifier: 4.8.4
version: 4.8.4
@@ -1489,8 +1489,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1524,6 +1524,9 @@ importers:
tsup:
specifier: 6.7.0
version: 6.7.0(ts-node@10.9.1)(typescript@4.8.4)
typedoc:
specifier: 0.24.7
version: 0.24.7(typescript@4.8.4)
typescript:
specifier: 4.8.4
version: 4.8.4
@@ -1568,8 +1571,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1600,6 +1603,9 @@ importers:
tsup:
specifier: 6.7.0
version: 6.7.0(ts-node@10.9.1)(typescript@4.8.4)
typedoc:
specifier: 0.24.7
version: 0.24.7(typescript@4.8.4)
packages/es-mapping-generator:
dependencies:
@@ -1653,8 +1659,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@3.8.3)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -1796,8 +1802,8 @@ importers:
specifier: 5.49.0
version: 5.49.0(eslint@8.33.0)(typescript@4.8.4)
c8:
specifier: 7.13.0
version: 7.13.0
specifier: 7.14.0
version: 7.14.0
chai:
specifier: 4.3.7
version: 4.3.7
@@ -7500,13 +7506,6 @@ packages:
engines: {node: '>=8'}
dev: true
/append-transform@2.0.0:
resolution: {integrity: sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==}
engines: {node: '>=8'}
dependencies:
default-require-extensions: 3.0.1
dev: true
/aproba@2.0.0:
resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}
@@ -7514,10 +7513,6 @@ packages:
resolution: {integrity: sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==}
dev: true
/archy@1.0.0:
resolution: {integrity: sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==}
dev: true
/are-we-there-yet@3.0.1:
resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -8272,8 +8267,8 @@ packages:
resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
engines: {node: '>= 0.8'}
/c8@7.13.0:
resolution: {integrity: sha512-/NL4hQTv1gBL6J6ei80zu3IiTrmePDKXKXOTLpHvcIWZTVYQlDhVWjjWvkhICylE8EwwnMVzDZugCvdx0/DIIA==}
/c8@7.14.0:
resolution: {integrity: sha512-i04rtkkcNcCf7zsQcSv/T9EbUn4RXQ6mropeMcjFOsQXQ0iGLAr/xT6TImQg4+U9hmNpN9XdvPkjUL1IzbgxJw==}
engines: {node: '>=10.12.0'}
hasBin: true
dependencies:
@@ -8401,16 +8396,6 @@ packages:
engines: {node: '>=6'}
dev: true
/caching-transform@4.0.0:
resolution: {integrity: sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==}
engines: {node: '>=8'}
dependencies:
hasha: 5.2.2
make-dir: 3.1.0
package-hash: 4.0.0
write-file-atomic: 3.0.3
dev: true
/call-bind@1.0.2:
resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}
dependencies:
@@ -9759,13 +9744,6 @@ packages:
execa: 5.1.1
dev: true
/default-require-extensions@3.0.1:
resolution: {integrity: sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==}
engines: {node: '>=8'}
dependencies:
strip-bom: 4.0.0
dev: true
/defaults@1.0.4:
resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}
dependencies:
@@ -10323,10 +10301,6 @@ packages:
next-tick: 1.1.0
dev: true
/es6-error@4.1.1:
resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}
dev: true
/es6-iterator@2.0.3:
resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==}
dependencies:
@@ -11391,10 +11365,6 @@ packages:
resolution: {integrity: sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==}
dev: true
/fromentries@1.3.2:
resolution: {integrity: sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==}
dev: true
/fs-constants@1.0.0:
resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
@@ -11963,14 +11933,6 @@ packages:
minimalistic-assert: 1.0.1
dev: true
/hasha@5.2.2:
resolution: {integrity: sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==}
engines: {node: '>=8'}
dependencies:
is-stream: 2.0.1
type-fest: 0.8.1
dev: true
/hdr-histogram-js@2.0.3:
resolution: {integrity: sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==}
dependencies:
@@ -12878,25 +12840,6 @@ packages:
engines: {node: '>=8'}
dev: true
/istanbul-lib-hook@3.0.0:
resolution: {integrity: sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==}
engines: {node: '>=8'}
dependencies:
append-transform: 2.0.0
dev: true
/istanbul-lib-instrument@4.0.3:
resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==}
engines: {node: '>=8'}
dependencies:
'@babel/core': 7.21.3
'@istanbuljs/schema': 0.1.3
istanbul-lib-coverage: 3.2.0
semver: 6.3.0
transitivePeerDependencies:
- supports-color
dev: true
/istanbul-lib-instrument@5.2.1:
resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==}
engines: {node: '>=8'}
@@ -12910,18 +12853,6 @@ packages:
- supports-color
dev: true
/istanbul-lib-processinfo@2.0.3:
resolution: {integrity: sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==}
engines: {node: '>=8'}
dependencies:
archy: 1.0.0
cross-spawn: 7.0.3
istanbul-lib-coverage: 3.2.0
p-map: 3.0.0
rimraf: 3.0.2
uuid: 8.3.2
dev: true
/istanbul-lib-report@3.0.0:
resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==}
engines: {node: '>=8'}
@@ -12944,17 +12875,6 @@ packages:
- supports-color
dev: true
/istanbul-lib-source-maps@4.0.1:
resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==}
engines: {node: '>=10'}
dependencies:
debug: 4.3.4(supports-color@5.5.0)
istanbul-lib-coverage: 3.2.0
source-map: 0.6.1
transitivePeerDependencies:
- supports-color
dev: true
/istanbul-reports@3.1.5:
resolution: {integrity: sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==}
engines: {node: '>=8'}
@@ -13620,6 +13540,7 @@ packages:
/lodash.flattendeep@4.4.0:
resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==}
dev: false
/lodash.get@4.4.2:
resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}
@@ -14648,13 +14569,6 @@ packages:
vm-browserify: 1.1.2
dev: true
/node-preload@0.2.1:
resolution: {integrity: sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==}
engines: {node: '>=8'}
dependencies:
process-on-spawn: 1.0.0
dev: true
/node-readfiles@0.2.0:
resolution: {integrity: sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==}
dependencies:
@@ -14892,42 +14806,6 @@ packages:
- debug
dev: true
/nyc@15.1.0:
resolution: {integrity: sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==}
engines: {node: '>=8.9'}
hasBin: true
dependencies:
'@istanbuljs/load-nyc-config': 1.1.0
'@istanbuljs/schema': 0.1.3
caching-transform: 4.0.0
convert-source-map: 1.9.0
decamelize: 1.2.0
find-cache-dir: 3.3.2
find-up: 4.1.0
foreground-child: 2.0.0
get-package-type: 0.1.0
glob: 7.2.0
istanbul-lib-coverage: 3.2.0
istanbul-lib-hook: 3.0.0
istanbul-lib-instrument: 4.0.3
istanbul-lib-processinfo: 2.0.3
istanbul-lib-report: 3.0.0
istanbul-lib-source-maps: 4.0.1
istanbul-reports: 3.1.5
make-dir: 3.1.0
node-preload: 0.2.1
p-map: 3.0.0
process-on-spawn: 1.0.0
resolve-from: 5.0.0
rimraf: 3.0.2
signal-exit: 3.0.7
spawn-wrap: 2.0.0
test-exclude: 6.0.0
yargs: 15.4.1
transitivePeerDependencies:
- supports-color
dev: true
/oas-kit-common@1.0.8:
resolution: {integrity: sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==}
dependencies:
@@ -15243,13 +15121,6 @@ packages:
engines: {node: '>=6'}
dev: true
/p-map@3.0.0:
resolution: {integrity: sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==}
engines: {node: '>=8'}
dependencies:
aggregate-error: 3.1.0
dev: true
/p-map@4.0.0:
resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}
engines: {node: '>=10'}
@@ -15313,16 +15184,6 @@ packages:
netmask: 2.0.2
dev: true
/package-hash@4.0.0:
resolution: {integrity: sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==}
engines: {node: '>=8'}
dependencies:
graceful-fs: 4.2.10
hasha: 5.2.2
lodash.flattendeep: 4.4.0
release-zalgo: 1.0.0
dev: true
/package-json@6.5.0:
resolution: {integrity: sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==}
engines: {node: '>=8'}
@@ -16142,13 +16003,6 @@ packages:
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
dev: true
/process-on-spawn@1.0.0:
resolution: {integrity: sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==}
engines: {node: '>=8'}
dependencies:
fromentries: 1.3.2
dev: true
/process@0.11.10:
resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==}
engines: {node: '>= 0.6.0'}
@@ -16797,13 +16651,6 @@ packages:
dependencies:
jsesc: 0.5.0
/release-zalgo@1.0.0:
resolution: {integrity: sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==}
engines: {node: '>=4'}
dependencies:
es6-error: 4.1.1
dev: true
/request-progress@3.0.0:
resolution: {integrity: sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==}
dependencies:
@@ -17694,18 +17541,6 @@ packages:
deprecated: Please use @jridgewell/sourcemap-codec instead
dev: true
/spawn-wrap@2.0.0:
resolution: {integrity: sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==}
engines: {node: '>=8'}
dependencies:
foreground-child: 2.0.0
is-windows: 1.0.2
make-dir: 3.1.0
rimraf: 3.0.2
signal-exit: 3.0.7
which: 2.0.2
dev: true
/spawndamnit@2.0.0:
resolution: {integrity: sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA==}
dependencies: