Skip to content

Commit 5383455

Browse files
authored
chore: Fix up deno task test-all to run all tests and return non-0 status upon failure (#483)
chore: Fix up deno task test-all to run all tests and return non-0 status code upon failure.
1 parent 8b4a275 commit 5383455

File tree

13 files changed

+78
-48
lines changed

13 files changed

+78
-48
lines changed

typescript/packages/common-builder/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@commontools/builder",
33
"exports": "./src/index.ts",
44
"tasks": {
5-
"build": "../scripts/build.ts"
5+
"test": "deno test"
66
}
77
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@commontools/charm",
3+
"tasks": {
4+
"test": "deno test"
5+
},
36
"exports": "./src/index.ts"
47
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"tasks": {
33
"start": "deno run --allow-read --allow-env --allow-net main.ts",
4-
"memtest": "deno run --allow-read --allow-env --allow-net memory_test.ts"
4+
"memtest": "deno run --allow-read --allow-env --allow-net memory_test.ts",
5+
"test": "deno test"
56
}
67
}

typescript/packages/common-html/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@commontools/html",
33
"exports": "./src/index.ts",
44
"tasks": {
5-
"test-browser": "../scripts/test-browser.ts test-browser/**/*.ts"
5+
"test": "deno test"
66
}
77
}

typescript/packages/common-os-ui/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "@commontools/os-ui",
3+
"tasks": {
4+
"test": "deno test"
5+
},
36
"exports": "./src/index.ts",
47
"imports": {
58
"@codemirror/lang-css": "npm:@codemirror/lang-css@^6.3.1",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@commontools/runner",
3+
"tasks": {
4+
"test": "deno test"
5+
},
36
"exports": "./src/index.ts"
47
}

typescript/packages/common-runner/src/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function run<T, R = any>(
199199

200200
const internal = {
201201
...(deepCopy(defaults) as { internal: any })?.internal,
202-
...recipe.initial?.internal,
202+
...(recipe.initial as { internal: any } | void)?.internal,
203203
...processCell.get()?.internal,
204204
};
205205

typescript/packages/common-ui/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@commontools/ui",
33
"exports": "./src/index.ts",
4+
"tasks": {
5+
"test": "echo 'No tests to run.'"
6+
},
47
"imports": {
58
"@shoelace-style/shoelace": "npm:@shoelace-style/shoelace@^2.19.1"
69
}

typescript/packages/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"./toolshed"
1717
],
1818
"tasks": {
19-
"test-all": "./scripts/test-all.sh"
19+
"test-all": "./scripts/test-all.ts"
2020
},
2121
"compilerOptions": {
2222
"jsx": "react-jsxdev",

typescript/packages/jumble/deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"tasks": {
33
"dev": "deno run -A --node-modules-dir=auto npm:vite",
44
"build": "deno run -A --node-modules-dir=auto npm:vite build",
5-
"preview": "deno run -A --node-modules-dir=auto npm:vite preview"
5+
"preview": "deno run -A --node-modules-dir=auto npm:vite preview",
6+
"test": "echo 'No tests to run.'"
67
},
78
"imports": {
89
"@/": "./src/",

0 commit comments

Comments
 (0)