@telorun/test 0.1.9 → 0.2.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/README.md +0 -4
- package/dist/suite.js +8 -3
- package/package.json +3 -3
- package/src/suite.ts +8 -3
package/README.md
CHANGED
package/dist/suite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kernel } from "@telorun/kernel";
|
|
1
|
+
import { Kernel, LocalFileSource } from "@telorun/kernel";
|
|
2
2
|
import { Type } from "@sinclair/typebox";
|
|
3
3
|
import * as fs from "fs";
|
|
4
4
|
import * as path from "path";
|
|
@@ -132,8 +132,13 @@ async function runOneTest(testPath, captureOutput, parentStdout, parentStderr) {
|
|
|
132
132
|
const stdout = captureOutput ? new BufferedWritable() : parentStdout;
|
|
133
133
|
const stderr = captureOutput ? new BufferedWritable() : parentStderr;
|
|
134
134
|
try {
|
|
135
|
-
const kernel = new Kernel({
|
|
136
|
-
|
|
135
|
+
const kernel = new Kernel({
|
|
136
|
+
env: buildEnvForManifest(testPath),
|
|
137
|
+
stdout,
|
|
138
|
+
stderr,
|
|
139
|
+
sources: [new LocalFileSource()],
|
|
140
|
+
});
|
|
141
|
+
await kernel.load(testPath);
|
|
137
142
|
await kernel.start();
|
|
138
143
|
return {
|
|
139
144
|
path: testPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telorun/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Telo Test module - Test runner for Telo manifests.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"telo",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@sinclair/typebox": "^0.34.48",
|
|
36
|
-
"@telorun/kernel": "0.
|
|
37
|
-
"@telorun/sdk": "0.
|
|
36
|
+
"@telorun/kernel": "0.6.0",
|
|
37
|
+
"@telorun/sdk": "0.6.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^20.0.0",
|
package/src/suite.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kernel } from "@telorun/kernel";
|
|
1
|
+
import { Kernel, LocalFileSource } from "@telorun/kernel";
|
|
2
2
|
import type { ResourceContext, Runnable } from "@telorun/sdk";
|
|
3
3
|
import { Static, Type } from "@sinclair/typebox";
|
|
4
4
|
import * as fs from "fs";
|
|
@@ -165,8 +165,13 @@ async function runOneTest(
|
|
|
165
165
|
const stdout = captureOutput ? new BufferedWritable() : parentStdout;
|
|
166
166
|
const stderr = captureOutput ? new BufferedWritable() : parentStderr;
|
|
167
167
|
try {
|
|
168
|
-
const kernel = new Kernel({
|
|
169
|
-
|
|
168
|
+
const kernel = new Kernel({
|
|
169
|
+
env: buildEnvForManifest(testPath),
|
|
170
|
+
stdout,
|
|
171
|
+
stderr,
|
|
172
|
+
sources: [new LocalFileSource()],
|
|
173
|
+
});
|
|
174
|
+
await kernel.load(testPath);
|
|
170
175
|
await kernel.start();
|
|
171
176
|
return {
|
|
172
177
|
path: testPath,
|