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.
@@ -20,9 +20,6 @@ jobs:
20
20
  - name: Install dependencies
21
21
  if: steps.node-cache.outputs.cache-hit != 'true'
22
22
  run: yarn
23
-
24
- - name: Build tests
25
- run: yarn run build:test
26
23
 
27
24
  - name: Perform tests
28
- run: yarn run test:wasmtime
25
+ run: yarn run test
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  | _ || __| ___|_ _|| __|| __||_ _|
4
4
  | ||__ ||___| | | | __||__ | | |
5
5
  |__|__||_____| |_| |_____||_____| |_|
6
- v0.0.8
6
+ v0.0.9
7
7
  </pre>
8
8
  </h5>
9
9
 
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.8 -------------------\n"));
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;
@@ -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
  }
@@ -2,7 +2,12 @@ import { Verdict } from "..";
2
2
 
3
3
  export class Node {
4
4
  public verdict: Verdict = Verdict.Unreachable;
5
- report(): string | null {
6
- return "ERROR"
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.8",
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 > ./build/test.build.log",
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",