Skip to content

Commit 0115e96

Browse files
authored
Add Razor grammar tests (#6103)
1 parent f40a0db commit 0115e96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+27924
-2
lines changed

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config: Config = {
88
projects: [
99
'<rootDir>/test/unitTests/jest.config.ts',
1010
'<rootDir>/test/integrationTests/jest.config.ts',
11+
'<rootDir>/test/razorTests/jest.config.ts',
1112
'<rootDir>/omnisharptest/omnisharpJestTests/jest.config.ts',
1213
],
1314
};

package-lock.json

Lines changed: 221 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@
5555
"scripts": {
5656
"vscode:prepublish": "tsc -p ./ && webpack --mode production",
5757
"l10nDevGenerateLocalizationBundle": "npx @vscode/l10n-dev export --outDir ./l10n ./src",
58-
"compile": "tsc -p ./ && npx eslint ./ && npm run l10nDevGenerateLocalizationBundle",
58+
"compile": "tsc -p ./ && npx eslint ./ && npm run l10nDevGenerateLocalizationBundle && npm run compile:razorTextMate",
59+
"compile:razorTextMate": "npx js-yaml src/razor/syntaxes/aspnetcorerazor.tmLanguage.yml > src/razor/syntaxes/aspnetcorerazor.tmLanguage.json",
5960
"compileDev": "tsc -p ./ && npx eslint ./ && webpack --mode development && npm run l10nDevGenerateLocalizationBundle",
6061
"watch": "tsc -watch -p ./",
6162
"tdd": "mocha --config ./.mocharc.jsonc --watch --watch-extensions ts omnisharptest/omnisharpUnitTests/**/*.test.ts*",
6263
"test": "tsc -p ./ && gulp test",
6364
"test:integration": "tsc -p ./ && gulp test:integration",
65+
"test:razor": "tsc -p ./ && npm run compile:razorTextMate && gulp test:razor",
6466
"omnisharptest": "tsc -p ./ && gulp omnisharptest",
6567
"omnisharptest:unit": "tsc -p ./ && gulp omnisharptest:unit",
6668
"omnisharptest:feature": "tsc -p ./ && gulp omnisharptest:feature",
@@ -121,6 +123,7 @@
121123
"@types/del": "3.0.1",
122124
"@types/fs-extra": "5.0.4",
123125
"@types/gulp": "4.0.5",
126+
"@types/jest": "^24.0.25",
124127
"@types/minimist": "1.2.1",
125128
"@types/mocha": "5.2.5",
126129
"@types/node": "16.11.38",
@@ -170,6 +173,8 @@
170173
"typescript": "^5.1.6",
171174
"unzipper": "0.10.11",
172175
"vsce": "2.9.2",
176+
"vscode-oniguruma": "^1.6.1",
177+
"vscode-textmate": "^6.0.0",
173178
"vscode-uri": "^3.0.7",
174179
"webpack": "5.76.0",
175180
"webpack-cli": "4.6.0"

0 commit comments

Comments
 (0)