fennel-ls/test/init.fnl
XeroOl 3d1485060c fix "unknown module field" when accessing fields from doc objects with no known fields
this means stuff like `io.stderr:write` isn't a warning anymore
2024-07-15 17:48:11 -05:00

23 lines
616 B
Fennel

(local faith (require :faith))
(local fennel (require :fennel))
(case (os.getenv "FAITH_TEST")
target (let [(module function) (target:match "([^ ]+) ([^ ]+)")]
(tset package.loaded module {function (. (require module) function)})
(faith.run [module]))
_ (faith.run
[:test.json-rpc
:test.string-processing
:test.capabilities
:test.settings
:test.diagnostic
:test.goto-definition
:test.hover
:test.completion
:test.references
:test.lint
:test.code-action
:test.rename
:test.misc
:test.check]))