Add unit tests for SQLiteFileSystemProvider.writeFile#53
Conversation
Introduces unit tests for `SQLiteFileSystemProvider.writeFile` to improve test coverage for core file system operations. - Created `tests/mocks/vscode.ts` to mock `vscode` module dependencies (`Uri`, `FileSystemError`, etc.). - Created `tsconfig.test.json` to map `vscode` imports to the mock implementation during tests. - Added `tests/unit/virtualFileSystem.test.ts` covering: - Happy path for text content updates. - Handling of binary content (invalid UTF-8). - Error handling for invalid Row IDs and permission checks (`__create__.sql`). - Updated `package.json` test script to use `tsconfig.test.json` for all unit tests. This enables testing of `src/virtualFileSystem.ts` which was previously untestable due to direct `vscode` imports. Co-authored-by: zknpr <96851588+zknpr@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Merged as part of v1.3.0 release in PR #65 |
Acknowledged. Acknowledging that this work is now obsolete and stopping work on this task. |
Implemented unit tests for
SQLiteFileSystemProvider.writeFileby mocking thevscodemodule usingtsconfigpaths. This verifies correct data handling (text vs binary) and error conditions.PR created automatically by Jules for task 12571903002749966063 started by @zknpr