Skip to content

Commit

Permalink
contrib: Replace out-of-date __test_data__ links with a search
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Jan 20, 2025
1 parent 95d1c07 commit cbfb7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contributing/Testing/Using Obsidian API in tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ So we need a way to access Obsidian-generated data in our tests. This page tries

1. [resources/sample_vaults/Tasks-Demo/Test Data](https://github.com/obsidian-tasks-group/obsidian-tasks/tree/main/resources/sample_vaults/Tasks-Demo/Test%20Data) contains representative samples Markdown files for different scenarios.
2. The process described in [[#Test data creation sequence]] converts these files to matching JSON files in [tests/Obsidian/\_\_test_data\_\_](https://github.com/obsidian-tasks-group/obsidian-tasks/tree/main/tests/Obsidian/__test_data__).
3. So far the files that use this mechanism are [tests/Obsidian/Cache.test.ts](https://github.com/obsidian-tasks-group/obsidian-tasks/blob/main/tests/Obsidian/Cache.test.ts) and [tests/Scripting/TasksFile.test.ts](https://github.com/obsidian-tasks-group/obsidian-tasks/blob/main/tests/Scripting/TasksFile.test.ts). Refer to these files for examples.
3. See all the [uses of this data so far, in Tasks tests](https://github.com/search?q=repo%3Aobsidian-tasks-group%2Fobsidian-tasks+__test_data__+language%3ATypeScript&type=code&l=TypeScript).

## Test data creation sequence

Expand Down

0 comments on commit cbfb7a2

Please sign in to comment.