Skip to content

Commit

Permalink
Fix npm run syntax tests (#928)
Browse files Browse the repository at this point in the history
This changes the single quotes to double quotes in the syntax and grammar scripts.

Single quotes do not work on Windows, double quotes work everywhere and allow passing in arguments using `npm run test:snap -- -u`
  • Loading branch information
jpogran authored Feb 9, 2022
1 parent 8ad327c commit 39e25f1
Showing 1 changed file with 2 additions and 2 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 source.terraform -g syntaxes/terraform.tmGrammar.json -t 'tests/unit/**/*.tf'",
"test:snap": "npx vscode-tmgrammar-snap -s source.terraform -g syntaxes/terraform.tmGrammar.json -t 'tests/snapshot/**/*.tf'",
"test:grammar": "npx vscode-tmgrammar-test -s source.terraform -g syntaxes/terraform.tmGrammar.json -t \"tests/unit/**/*.tf\"",
"test:snap": "npx vscode-tmgrammar-snap -s source.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

0 comments on commit 39e25f1

Please sign in to comment.