Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple files #24

Merged
merged 8 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
npm run test
npm run test:e2e

- name: Package Extension
run: npx vsce package
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
"test-compile": "tsc -b ./",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "npm run test-compile && sh ./scripts/e2e.sh",
"test:server": "cd server && npx mocha -r ts-node/register src/test/**/*.test.ts src/util/test/**/*.test.ts",
"all": "npm run postinstall && npm run esbuild && npm run lint && npm run test:server && npm run test && npm run vscode:prepublish"
"test:e2e": "run-script-os",
"test:e2e:win32": "npm run test-compile && powershell -File ./scripts/e2e.ps1",
"test:e2e:default": "npm run test-compile && sh ./scripts/e2e.sh",
"test:server": "cd server && npx mocha -r ts-node/register src/test/**/*.test.ts src/project/test/**/*.test.ts src/util/test/**/*.test.ts",
"all": "npm run postinstall && npm run esbuild && npm run lint && npm run test:server && npm run test:e2e && npm run vscode:prepublish"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
Expand All @@ -62,6 +64,7 @@
"esbuild": "^0.20.0",
"eslint": "^8.55.0",
"mocha": "^10.2.0",
"run-script-os": "^1.1.6",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
}
Expand Down
4 changes: 4 additions & 0 deletions scripts/e2e.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$env:CODE_TESTS_PATH = "$(Get-Location)\client\out\test"
$env:CODE_TESTS_WORKSPACE = "$(Get-Location)\client\testFixture"

node "$(Get-Location)\client\out\test\runTest"
Loading
Loading