Improve tests and update dependencies #7
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to the
native-keychainproject, including migrating ESLint configuration to a modern format, enhancing test coverage, and updating dependencies. The changes improve maintainability, modernize tooling, and refine the project's testing and build processes.ESLint Configuration Migration:
.eslintrc.jsonand replaced it witheslint.config.js, adopting the flat config format for ESLint. This includes updated plugin imports, parser settings, and rules for TypeScript and Prettier integration. [1] [2]Testing Enhancements:
tests/index.tsto include structured test cases for biometric support, password operations (with and without biometry), and cleanup procedures. Added utility functions for logging and assertions to improve test readability and maintainability.Dependency Updates:
package.jsondependencies to newer versions, includingkoffi, TypeScript, ESLint, and Prettier. Replacedts-nodewithtsxfor running tests. [1] [2]"type": "module"topackage.jsonto enable ES module support.Codebase Modernization:
src/index.tsto use ES module syntax and added__filenameand__dirnamedefinitions for compatibility with Node.js modules. Updated function return types forgetPasswordandrequestBiometricsVerificationto infer types directly. [1] [2] [3]Documentation Updates:
README.mdwith sections on development, including instructions for running tests, building the project, and linting. Added details about biometric authentication requirements during testing.