aboutsummaryrefslogtreecommitdiff
path: root/bindings/node
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/node')
-rw-r--r--bindings/node/binding_test.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/bindings/node/binding_test.js b/bindings/node/binding_test.js
new file mode 100644
index 0000000..afede30
--- /dev/null
+++ b/bindings/node/binding_test.js
@@ -0,0 +1,9 @@
+/// <reference types="node" />
+
+const assert = require("node:assert");
+const { test } = require("node:test");
+
+test("can load grammar", () => {
+ const parser = new (require("tree-sitter"))();
+ assert.doesNotThrow(() => parser.setLanguage(require(".")));
+});