typescript-ts-mode: Skip test if tsx grammar missing
typescript-ts-mode-test-indentation depends on both the tree-sitter typescript grammar, and the tree-sitter tsx grammar. If only the typescript is installed, the tests will run and then fail unexpectedly after tsx fails to load. * test/lisp/progmodes/typescript-ts-mode-tests.el (typescript-ts-mode-test-indentation): Skip test if tsx grammar is missing. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
9841ced147
commit
c450eec07f
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@
|
|||
(require 'treesit)
|
||||
|
||||
(ert-deftest typescript-ts-mode-test-indentation ()
|
||||
(skip-unless (treesit-ready-p 'typescript))
|
||||
(skip-unless (and (treesit-ready-p 'typescript)
|
||||
(treesit-ready-p 'tsx)))
|
||||
(ert-test-erts-file (ert-resource-file "indent.erts")))
|
||||
|
||||
(provide 'typescript-ts-mode-tests)
|
||||
|
|
Loading…
Add table
Reference in a new issue