Skip to content

Commit

Permalink
Run syntax tests on all snapshot files (#917)
Browse files Browse the repository at this point in the history
* fix test source glob

* fix typo in snapshot
  • Loading branch information
dbanck committed Feb 4, 2022
1 parent 750a44d commit 562c7cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@
"test": "node ./out/test/runTest.js",
"test:unit": "jest",
"test:syntax": "npm run test:grammar && npm run test:snap",
"test:grammar": "npx vscode-tmgrammar-test -s scope.terraform -g syntaxes/terraform.tmGrammar.json -t tests/unit/**/*.tf",
"test:snap": "npx vscode-tmgrammar-snap -s scope.terraform -g syntaxes/terraform.tmGrammar.json -t tests/snapshot/**/*.tf",
"test:grammar": "npx vscode-tmgrammar-test -s scope.terraform -g syntaxes/terraform.tmGrammar.json -t 'tests/unit/**/*.tf'",
"test:snap": "npx vscode-tmgrammar-snap -s scope.terraform -g syntaxes/terraform.tmGrammar.json -t 'tests/snapshot/**/*.tf'",
"lint": "eslint src --ext ts",
"prettier": "prettier \"**/*.+(js|json|ts)\"",
"format": "npm run prettier -- --write",
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot/terraform/expressions_operators.tf.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# ^^ scope.terraform keyword.operator.terraform
# ^^^^^^^^ scope.terraform
>
># comaprison
># comparison
#^ scope.terraform comment.line.terraform punctuation.definition.comment.terraform
# ^^^^^^^^^^^ scope.terraform comment.line.terraform
>
Expand Down

0 comments on commit 562c7cd

Please sign in to comment.