diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94ee1fa..c4430fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: working-directory: test/consumers/typescript run: | npm install - ./node_modules/.bin/ts-node app.ts + npx tsx app.ts - name: Test python consumer working-directory: test/consumers/python run: | diff --git a/test/consumers/python/main.py b/test/consumers/python/main.py index dd705d3..08921d8 100644 --- a/test/consumers/python/main.py +++ b/test/consumers/python/main.py @@ -11,6 +11,6 @@ print(tree.root_node) query = TLAPLUS_LANGUAGE.query('(def_eq \"≜\") @capture') -for node, capture_name in query.captures(tree.root_node): - print(node) +captures = query.captures(tree.root_node) +print(captures['capture']) diff --git a/test/consumers/python/requirements.txt b/test/consumers/python/requirements.txt index acf679d..44be723 100644 --- a/test/consumers/python/requirements.txt +++ b/test/consumers/python/requirements.txt @@ -1,3 +1,3 @@ -tree-sitter +tree-sitter==0.23.0 ../../.. diff --git a/test/consumers/typescript/package.json b/test/consumers/typescript/package.json index 27889b7..e4c35e6 100644 --- a/test/consumers/typescript/package.json +++ b/test/consumers/typescript/package.json @@ -5,7 +5,7 @@ }, "devDependencies": { "@types/node": "^20.12.4", - "ts-node": "^10.9.2", - "typescript": "^5.4.3" + "tsx": "^4.19.1", + "typescript": "^5.6.2" } }