prismicio / prismic-ts-codegen

A Prismic model-to-TypeScript-type generator.
Apache License 2.0
18 stars 6 forks source link

fix(detectTypesProvider): make `detectTypesProvider` actually work #43

Closed angeloashmore closed 1 year ago

angeloashmore commented 1 year ago

Types of changes

Description

This PR fixes detectTypesProvider() so it actually works. 😅

It also adds tests for detectTypesProvider().

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #43 (4e25644) into main (2b40084) will increase coverage by 0.91%. The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   97.87%   98.79%   +0.91%     
==========================================
  Files          23       23              
  Lines        1644     1653       +9     
  Branches      136      140       +4     
==========================================
+ Hits         1609     1633      +24     
+ Misses         35       20      -15     
Impacted Files Coverage Δ
src/detectTypesProvider.ts 100.00% <100.00%> (+46.87%) :arrow_up: