From a918b24ad812e97049f1a18f83a59ad5533d8cc0 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Wed, 9 Feb 2022 12:34:17 -0500 Subject: [PATCH] Fix npm run syntax tests 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` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 023b0f84e1..09053ebaf5 100644 --- a/package.json +++ b/package.json @@ -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",