Skip to content

fix: import type ꡬ문으둜 μˆ˜μ •

b887d6d
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Refactor to recursive hash tree structure #18

fix: import type ꡬ문으둜 μˆ˜μ •
b887d6d
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Logs succeeded Jan 22, 2026 in 1s

76 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
packages/patchlogr-cli/.coverage/report.xml 1βœ… 5ms
packages/patchlogr-core/.coverage/report.xml 15βœ… 36ms
packages/patchlogr-oas/.coverage/report.xml 60βœ… 1s

βœ…Β packages/patchlogr-cli/.coverage/report.xml

1 tests were completed in 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/tests/sample.test.ts 1βœ… 5ms

βœ…Β src/tests/sample.test.ts

βœ… @patchlogr/cli > sample test

βœ…Β packages/patchlogr-core/.coverage/report.xml

15 tests were completed in 36ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/partition/tests/partitionByMethod.test.ts 2βœ… 11ms
src/partition/tests/partitionByTag.test.ts 3βœ… 11ms
src/utils/tests/createHash.test.ts 1βœ… 4ms
src/utils/tests/stableStringify.test.ts 9βœ… 9ms

βœ…Β src/partition/tests/partitionByMethod.test.ts

βœ… partitionByMethod > should group by HTTPMethod
βœ… partitionByMethod > should group by multiple HTTPMethods

βœ…Β src/partition/tests/partitionByTag.test.ts

βœ… partitionByTag > should group by first tag
βœ… partitionByTag > should group by multiple tags
βœ… partitionByTag > should group into default tag if tag not exists

βœ…Β src/utils/tests/createHash.test.ts

βœ… createHash > createSHA256Hash > sha256 must be deterministic

βœ…Β src/utils/tests/stableStringify.test.ts

βœ… stableStringify > should stringify json
βœ… stableStringify > should stringify json in a stable order
βœ… stableStringify > should stringify nested objects with stable key order
βœ… stableStringify > should stringify deeply nested objects with stable key order
βœ… stableStringify > should stringify arrays containing objects with stable key order
βœ… stableStringify > should handle null and primitive values correctly
βœ… stableStringify > should produce deterministic output for canonical spec hashing
βœ… stableStringify > should output nested object keys in sorted order
βœ… stableStringify > should sort keys in arrays of objects

βœ…Β packages/patchlogr-oas/.coverage/report.xml

60 tests were completed in 1s with 60 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/tests/preprocessOASDocument.test.ts 2βœ… 407ms
src/canonicalize/tests/v2/canonicalizeOASV2.test.ts 16βœ… 29ms
src/canonicalize/tests/v3/canonicalizeOASV3.test.ts 12βœ… 18ms
src/guards/tests/guardTests.test.ts 3βœ… 3ms
src/pipeline/tests/OASBundleStage.test.ts 1βœ… 12ms
src/pipeline/tests/OASDereferenceStage.test.ts 1βœ… 3ms
src/pipeline/tests/OASValidationStage.test.ts 7βœ… 519ms
src/pipeline/tests/PipelineExecutor.test.ts 2βœ… 5ms
src/utils/tests/oasVersionUtils.test.ts 5βœ… 4ms
src/utils/tests/toCanonicalSchema.test.ts 4βœ… 6ms
src/utils/tests/toCanonicalSchemaV2.test.ts 3βœ… 6ms
src/utils/tests/toCanonicalSchemaV3.test.ts 4βœ… 6ms

βœ…Β src/tests/preprocessOASDocument.test.ts

βœ… preprocessOASDocument Integration > Pipeline handles OAS 2.0 with refs correctly
βœ… preprocessOASDocument Integration > Pipeline handles OAS 3.0 with refs correctly

βœ…Β src/canonicalize/tests/v2/canonicalizeOASV2.test.ts

βœ… canonicalizeOASV2 > Map 'info' property correctly
βœ… canonicalizeOASV2 > Generate correct operation keys
βœ… canonicalizeOASV2 > Merge path-level and operation-level parameters
βœ… canonicalizeOASV2 > Transform body parameter correctly
βœ… canonicalizeOASV2 > Transform formData to body with correct content-type
βœ… canonicalizeOASV2 > Map responses and inherit produces
βœ… canonicalizeOASV2 > Map operation metadata
βœ… canonicalizeOASV2 > Produce full canonical spec matching expected output
βœ… categorizeParameters > should separate request params, form data, and body param
βœ… normalizeGeneralParam > should normalize general parameter
βœ… normalizeGeneralParam > should include collectionFormat for array type
βœ… processRequestBody > should process body param correctly
βœ… processFormData > should process form data correctly
βœ… processFormData > should preserve extra properties (default, enum) and normalize items in form data
βœ… processResponses > should process responses correctly
βœ… extractDocMetadata > should extract documentation metadata

βœ…Β src/canonicalize/tests/v3/canonicalizeOASV3.test.ts

βœ… canonicalizeOASV3 > Map 'info' property correctly
βœ… canonicalizeOASV3 > Generate correct operation keys
βœ… canonicalizeOASV3 > Merge path-level and operation-level parameters
βœ… canonicalizeOASV3 > Transform body parameter correctly
βœ… canonicalizeOASV3 > Transform formData (multipart) to body correctly
βœ… canonicalizeOASV3 > Map responses and dereference logic
βœ… canonicalizeOASV3 > Map operation metadata
βœ… canonicalizeOASV3 > Produce full canonical spec matching expected output
βœ… canonicalizeOASV3 Helpers > normalizeParameters > should normalize parameters
βœ… canonicalizeOASV3 Helpers > normalizeRequestBody > should normalize request body
βœ… canonicalizeOASV3 Helpers > processResponses > should process responses
βœ… canonicalizeOASV3 Helpers > extractDocMetadata > should extract documentation metadata

βœ…Β src/guards/tests/guardTests.test.ts

βœ… Guards > isSchemaObject > should return true for valid schema object
βœ… Guards > isSchemaObject > should return false for reference object
βœ… Guards > isSchemaObject > should return false for null

βœ…Β src/pipeline/tests/OASBundleStage.test.ts

βœ… OASBundleStage > should dereference external $ref correctly

βœ…Β src/pipeline/tests/OASDereferenceStage.test.ts

βœ… OASDereferenceStage > should throw an error if input.oas is missing

βœ…Β src/pipeline/tests/OASValidationStage.test.ts

βœ… SwaggerValidationStage > should parse version 3.0.x correctly
βœ… SwaggerValidationStage > should parse version 2.0 correctly
βœ… SwaggerValidationStage > should parse version 3.1 correctly
βœ… SwaggerValidationStage > should validate a correct OAS document
βœ… SwaggerValidationStage > should throw an error for invalid OAS document
βœ… SwaggerValidationStage > should throw an error if input.oas is missing
βœ… SwaggerValidationStage > should update context with validated oas object

βœ…Β src/pipeline/tests/PipelineExecutor.test.ts

βœ… PipelineExecutor > should append stages correctly
βœ… PipelineExecutor > should execute stages in order

βœ…Β src/utils/tests/oasVersionUtils.test.ts

βœ… OASVersionUtils > getOASVersion should return correct version for 3.+
βœ… OASVersionUtils > getOASVersion should return correct version for 2.0
βœ… OASVersionUtils > getOASVersion should return undefined for unknown version
βœ… OASVersionUtils > isOpenAPIV3 should correctly identify OpenAPI v3 documents
βœ… OASVersionUtils > isOpenAPIV2 should correctly identify OpenAPI v2 documents

βœ…Β src/utils/tests/toCanonicalSchema.test.ts

βœ… toCanonicalSchema > should normalize simple schema
βœ… toCanonicalSchema > should normalize schema with nested properties
βœ… toCanonicalSchema > should normalize schema with nested arrays
βœ… toCanonicalSchema > should normalize schema with tuple items (array of schemas)

βœ…Β src/utils/tests/toCanonicalSchemaV2.test.ts

βœ… toCanonicalSchemaV2 > should convert a simple string schema
βœ… toCanonicalSchemaV2 > should handle required fields in V2 (separate array)
βœ… toCanonicalSchemaV2 > should handle x-nullable (V2 extension)

βœ…Β src/utils/tests/toCanonicalSchemaV3.test.ts

βœ… toCanonicalSchemaV3 > should convert a simple string schema
βœ… toCanonicalSchemaV3 > should handle required fields
βœ… toCanonicalSchemaV3 > should handle missing type (V3 allows missing type)
βœ… toCanonicalSchemaV3 > should handle nullable (V3 property)