Skip to content

Commit

Permalink
Support deprecation options in the legacy JS API (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jathak committed Sep 3, 2024
1 parent b545759 commit 9343ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const config = {
roots: ['<rootDir>/lib/', '<rootDir>/test/'],
preset: 'ts-jest',
testEnvironment: 'node',
};
Expand Down
3 changes: 3 additions & 0 deletions lib/src/legacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ function convertOptions<sync extends 'sync' | 'async'>(
verbose: options.verbose,
charset: options.charset,
logger: options.logger,
fatalDeprecations: options.fatalDeprecations,
futureDeprecations: options.futureDeprecations,
silenceDeprecations: options.silenceDeprecations,
legacy: true,
};
}
Expand Down

0 comments on commit 9343ff7

Please sign in to comment.