as-test 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/nodejs.yml +1 -4
- package/README.md +1 -1
- package/assembly/index.ts +1 -1
- package/assembly/src/group.ts +1 -7
- package/assembly/src/node.ts +7 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/assembly/index.ts
CHANGED
|
@@ -214,7 +214,7 @@ export function run(options: RunOptions = new RunOptions()): void {
|
|
|
214
214
|
console.log(rainbow.boldMk(rainbow.green(`| _ || __| ___|_ _|| __|| __||_ _|`)));
|
|
215
215
|
console.log(rainbow.boldMk(rainbow.green(`| ||__ ||___| | | | __||__ | | | `)));
|
|
216
216
|
console.log(rainbow.boldMk(rainbow.green(`|__|__||_____| |_| |_____||_____| |_| `)));
|
|
217
|
-
console.log(rainbow.dimMk ("\n------------------- v0.0.
|
|
217
|
+
console.log(rainbow.dimMk ("\n------------------- v0.0.9 -------------------\n"));
|
|
218
218
|
const suites = groups.length;
|
|
219
219
|
let failed = 0;
|
|
220
220
|
let tests = 0;
|
package/assembly/src/group.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Verdict } from "..";
|
|
2
2
|
import { Expectation } from "./expectation";
|
|
3
|
-
import { Node } from "./node";
|
|
3
|
+
import { Node, ReportLogs } from "./node";
|
|
4
4
|
export class TestGroup {
|
|
5
5
|
public results: Node[] = [];
|
|
6
6
|
|
|
@@ -41,10 +41,4 @@ export class TestGroup {
|
|
|
41
41
|
run(): void {
|
|
42
42
|
this.callback();
|
|
43
43
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class ReportLogs {
|
|
48
|
-
passed: string | null;
|
|
49
|
-
failed: string | null;
|
|
50
44
|
}
|
package/assembly/src/node.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { Verdict } from "..";
|
|
|
2
2
|
|
|
3
3
|
export class Node {
|
|
4
4
|
public verdict: Verdict = Verdict.Unreachable;
|
|
5
|
-
report():
|
|
6
|
-
return
|
|
5
|
+
report(): ReportLogs | null {
|
|
6
|
+
return null;
|
|
7
7
|
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class ReportLogs {
|
|
11
|
+
passed: string | null;
|
|
12
|
+
failed: string | null;
|
|
8
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "as-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Testing framework for AssemblyScript. Compatible with WASI or Bindings ",
|
|
5
5
|
"types": "assembly/index.ts",
|
|
6
6
|
"author": "Jairus Tanaka",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "wasmtime ./build/test.wasm",
|
|
11
|
-
"pretest": "asc assembly/test.ts -o build/test.wasm --bindings esm --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json
|
|
11
|
+
"pretest": "asc assembly/test.ts -o build/test.wasm --bindings esm --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json",
|
|
12
12
|
"build:bench": "asc assembly/bench/bench.ts -o build/bench.wasm --config ./node_modules/@assemblyscript/wasi-shim/asconfig.json --optimizeLevel 3 --converge --exportRuntime --runtime stub",
|
|
13
13
|
"bench:wasmtime": "wasmtime ./build/bench.wasm",
|
|
14
14
|
"build:transform": "tsc -p ./transform",
|