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

Use vscode-test script instead of test-runner package. #5

Merged
merged 2 commits into from
Apr 8, 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/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
shell: bash

- name: Install Depot
run: curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh
run: curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh -s e92a63edcb17cf156e399587b79192369911560e
shell: bash

- name: Install Test Libraries
Expand Down
14 changes: 14 additions & 0 deletions ide/packages/itests/.vscode-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from "@vscode/test-cli";
import fs from "fs";
import path from "path";

let workspaces = fs
.readdirSync("workspaces")
.map(p => path.join("workspaces", p));

let configs = workspaces.map(ws => ({
files: "dist/*.cjs",
workspaceFolder: ws,
}));

export default defineConfig(configs);
13 changes: 6 additions & 7 deletions ide/packages/itests/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "@argus/itests",
"version": "0.1.0",
"bin": {
"itests": "dist/itests.cjs"
},
"type": "module",
"depot": {
"platform": "node"
"platform": "node",
"target": "script"
},
"dependencies": {
"mocha": "^10.4.0"
Expand All @@ -15,8 +13,9 @@
"@types/chai": "^4.3.14",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"chai": "^5.1.0",
"glob": "^8.1.0",
"mocha": "^10.4.0"
"@vscode/test-cli": "^0.0.6",
"@vscode/test-electron": "^2.3.9",
"chai": "^5.1.0",
"glob": "^8.1.0"
}
}
44 changes: 0 additions & 44 deletions ide/packages/itests/src/main.ts

This file was deleted.

5 changes: 0 additions & 5 deletions ide/packages/itests/tests/add.test.ts

This file was deleted.

5 changes: 3 additions & 2 deletions ide/packages/itests/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import fs from "fs";
import { builtinModules } from "module";
import { resolve } from "path";
import path from "path";
import { defineConfig } from "vite";

let tests = fs.readdirSync("src").map(p => path.join("src", p));
let manifest = JSON.parse(fs.readFileSync("package.json", "utf-8"));
export default defineConfig(({ mode }) => ({
build: {
lib: {
entry: resolve(__dirname, "src/main.ts"),
entry: tests,
formats: ["cjs"],
},
minify: false,
Expand Down
1 change: 1 addition & 0 deletions ide/packages/itests/workspaces
6 changes: 0 additions & 6 deletions ide/packages/test-runner/.eslintrc.cjs

This file was deleted.

22 changes: 0 additions & 22 deletions ide/packages/test-runner/package.json

This file was deleted.

1 change: 0 additions & 1 deletion ide/packages/test-runner/src/constants.ts

This file was deleted.

77 changes: 0 additions & 77 deletions ide/packages/test-runner/src/main.ts

This file was deleted.

1 change: 0 additions & 1 deletion ide/packages/test-runner/src/workspaces

This file was deleted.

9 changes: 0 additions & 9 deletions ide/packages/test-runner/tsconfig.json

This file was deleted.

28 changes: 0 additions & 28 deletions ide/packages/test-runner/vite.config.ts

This file was deleted.

30 changes: 7 additions & 23 deletions ide/pnpm-lock.yaml

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

Loading