Skip to content

Commit

Permalink
chore: make "config" field available to derived classes (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-sainchuk authored Aug 22, 2022
1 parent f83e050 commit 5671e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function makeDocumentFromString(sourceString: string, absoluteRef: string
export class BaseResolver {
cache: Map<string, Promise<Document | ResolveError>> = new Map();

constructor(private config: ResolveConfig = { http: { headers: [] } }) {}
constructor(protected config: ResolveConfig = { http: { headers: [] } }) {}

getFiles() {
return new Set(Array.from(this.cache.keys()));
Expand Down

1 comment on commit 5671e9d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 68.91% 2924/4243
🟡 Branches 62.15% 1614/2597
🟡 Functions 60.56% 473/781
🟡 Lines 68.75% 2711/3943

Test suite run success

473 tests passing in 81 suites.

Report generated by 🧪jest coverage report action from 5671e9d

Please sign in to comment.