as-test 0.0.8 → 0.1.0
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/CHANGELOG.md +3 -1
- package/README.md +1 -1
- package/assembly/index.ts +1 -1
- package/assembly/src/group.ts +1 -7
- package/assembly/src/node.ts +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,4 +5,6 @@ v0.0.3 - Added `afterEach`, `beforeEach`, `afterAll`, `beforeAll`, `test`, `it`,
|
|
|
5
5
|
v0.0.4 - Fix import issue in README usage section
|
|
6
6
|
v0.0.5 - Switch errors to be thrown at compile time instead of runtime
|
|
7
7
|
v0.0.6 - Failed tests should be pushed to bottom of logs
|
|
8
|
-
v0.0.8 - Fix readme typo in v0.0.7
|
|
8
|
+
v0.0.8 - Fix readme typo in v0.0.7
|
|
9
|
+
v0.0.9 - Fix type issue
|
|
10
|
+
v0.1.0 - Fix more type issues
|
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.1.0 -------------------\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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "as-test",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
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",
|