1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Run typescript tests

This commit is contained in:
joshvera 2017-03-17 12:24:44 -04:00
parent 7a5bf48aac
commit 6dc9085dcd
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import Text.Parser.TreeSitter.C
import Text.Parser.TreeSitter.Go
import Text.Parser.TreeSitter.JavaScript
import Text.Parser.TreeSitter.Ruby
import Text.Parser.TreeSitter.TypeScript
data ParseJSON = ParseJSON
{ category :: Text
@ -62,6 +63,7 @@ parserForType :: Text -> Parser (Syntax Text) (Record '[Range, Category, SourceS
parserForType mediaType = case languageForType mediaType of
Just C -> treeSitterParser C tree_sitter_c
Just JavaScript -> treeSitterParser JavaScript tree_sitter_javascript
Just TypeScript -> treeSitterParser TypeScript tree_sitter_typescript
Just Markdown -> cmarkParser
Just Ruby -> treeSitterParser Ruby tree_sitter_ruby
Just Language.Go -> treeSitterParser Language.Go tree_sitter_go

View File

@ -26,10 +26,12 @@ spec = parallel $ do
it "lists example fixtures" $ do
examples "test/fixtures/go/" `shouldNotReturn` []
examples "test/fixtures/javascript/" `shouldNotReturn` []
examples "test/fixtures/typescript/" `shouldNotReturn` []
examples "test/fixtures/ruby/" `shouldNotReturn` []
describe "go" $ runTestsIn "test/fixtures/go/"
describe "javascript" $ runTestsIn "test/fixtures/javascript/"
describe "typescript" $ runTestsIn "test/fixtures/typescript/"
describe "ruby" $ runTestsIn "test/fixtures/ruby/"
where