Skip to content

Commit a230490

Browse files
committed
learning
1 parent 5b86906 commit a230490

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/instructions/testing-workflow.instructions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,7 @@ envConfig.inspect
583583
- When making systematic changes across many similar locations, fix one instance completely first to validate the approach before applying the pattern everywhere (1)
584584
- Always recompile tests after making changes before running them, especially when changing imports or type definitions (1)
585585
- When using paths as Map keys for tracking, you MUST use Uri.fsPath consistently throughout the test - mixing hardcoded strings with Uri.fsPath causes key mismatches on Windows (1)
586+
- Avoid accessing private members in tests using bracket notation or test interfaces - instead add explicit test helper methods or make methods `protected` rather than `private` for better encapsulation and less brittle tests (1)
587+
- Check for redundant test coverage between unit and integration test files - integration tests should test end-to-end behavior while unit tests focus on internal logic and edge cases (1)
588+
- Replace hardcoded `setTimeout` delays with condition-based polling that waits for the actual expected state - this makes tests faster and more reliable across different CI environments (1)
589+
- Fixture files in `src/test/fixtures/` must be copied to `out/test/fixtures/` for compiled tests to access them - create a copy script or add to the build process (1)

0 commit comments

Comments
 (0)