Files
fil/fixtures/contract/config_tree_sitter.json

52 lines
996 B
JSON
Raw Normal View History

2026-06-01 23:40:55 +02:00
{
"id": "config_tree_sitter",
"description": "Tests tree-sitter configuration round-trip",
"tags": [
"contract",
"config",
"tree-sitter"
],
"call": "extract_file_sync",
"input": {
"path": "code/hello.py",
"config": {
"tree_sitter": {
"languages": [
"python",
"rust"
],
"groups": [
"web"
],
"process": {
"structure": true,
"imports": true,
"exports": true,
"comments": false,
"docstrings": false,
"symbols": false,
"diagnostics": false
}
}
}
},
"assertions": [
{
"type": "equals",
"field": "mime_type",
"value": "text/x-source-code"
},
{
"type": "min_length",
"field": "content",
"value": 5
}
],
"skip": {
"languages": [
"wasm"
],
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
}
}