Closed Logerfo closed 1 year ago
@bpruitt-goddard
C:\repos\vscode-mermaid-syntax-highlight patch-1 ~1 20.5.0 ﴱ dev0
npm run convertYaml && npm test
> mermaid-markdown-syntax-highlighting@1.5.3 convertYaml
> node build/ConvertYaml.js
> mermaid-markdown-syntax-highlighting@1.5.3 test
> vscode-tmgrammar-test 'tests/**/*.test.{mermaid,md}'
ERROR no test cases found
Any chance you are on windows? I think there is a bug on Windows with the test library that is fixed by changing the quotes on the glob pattern. Can you try making this change here in package.json and see if that picks up the tests?
"test": "vscode-tmgrammar-test \"tests/**/*.test.{mermaid,md}\""
@bpruitt-goddard what do you think?
Looks good. Can a test or two be added to the associated test file? Perhaps one of the relationship lines can be modified to reflect the change? Note you'll need to update the commented lines afterword to ensure the caret
^
symbols line up with the proper positions. You can then validate the tests via these commands (from the root of the project)npm run convertYaml && npm test