Skip to content

Add initial commit

Add initial commit #18

Triggered via push August 2, 2024 16:35
Status Failure
Total duration 30s
Billable time 1m
Artifacts

tests.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
src/parser/security.test.js > parseSecurity() > should throw an error if all security blocks fail: src/parser/security.test.js#L252
Error: Snapshot `parseSecurity() > should throw an error if all security blocks fail 1` mismatched - Expected + Received - [ - { - "ok": false, - "schemes": { - "ApiKey": { - "error": [Error: ApiKey error], - "ok": false, - }, - }, - }, - { - "ok": false, - "schemes": { - "OAuth2": { - "error": [Error: OAuth2 error], - "ok": false, - }, - }, - }, - ] + undefined ❯ src/parser/security.test.js:252:26
src/parser/security.test.js > parseSecurity() > should validate scopes: src/parser/security.test.js#L404
Error: Snapshot `parseSecurity() > should validate scopes 1` mismatched - Expected + Received - [ - { - "ok": false, - "schemes": { - "OAuth2": { - "error": [FastifyError: Scopes do not match required scopes], - "ok": false, - }, - }, - }, - ] + undefined ❯ src/parser/security.test.js:404:26
src/parser/security.test.js > parseSecurity() > should allow security handler to return undefined and still check scopes: src/parser/security.test.js#L490
Error: Snapshot `parseSecurity() > should allow security handler to return undefined and still check scopes 1` mismatched - Expected + Received - [ - { - "ok": false, - "schemes": { - "OAuth2": { - "error": [FastifyError: Scopes do not match required scopes], - "ok": false, - }, - }, - }, - ] + undefined ❯ src/parser/security.test.js:490:26
tests
Process completed with exit code 1.