@gcoredev/fastedge-test 0.0.1-beta.4 → 0.1.0-beta.3
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 +6 -6
- package/dist/fastedge-cli/METADATA.json +1 -3
- package/dist/fastedge-cli/{fastedge-run-linux-x64-unkown → fastedge-run-darwin-arm64} +0 -0
- package/dist/fastedge-cli/fastedge-run-linux-x64 +0 -0
- package/dist/fastedge-cli/fastedge-run.exe +0 -0
- package/dist/frontend/assets/index-CEFjsU8e.js +35 -0
- package/dist/frontend/assets/index-DdlINQc_.css +1 -0
- package/dist/frontend/index.html +2 -2
- package/dist/lib/index.cjs +299 -107
- package/dist/lib/index.js +301 -110
- package/dist/lib/runner/HostFunctions.d.ts +8 -0
- package/dist/lib/runner/HttpWasmRunner.d.ts +34 -14
- package/dist/lib/runner/IStateManager.d.ts +3 -2
- package/dist/lib/runner/IWasmRunner.d.ts +16 -1
- package/dist/lib/runner/NullStateManager.d.ts +1 -0
- package/dist/lib/runner/PortManager.d.ts +17 -19
- package/dist/lib/runner/ProxyWasmRunner.d.ts +7 -0
- package/dist/lib/schemas/api.d.ts +8 -2
- package/dist/lib/schemas/config.d.ts +4 -1
- package/dist/lib/test-framework/index.cjs +301 -108
- package/dist/lib/test-framework/index.js +303 -111
- package/dist/lib/test-framework/suite-runner.d.ts +1 -1
- package/dist/server.js +30 -29
- package/docs/API.md +758 -360
- package/docs/DEBUGGER.md +151 -0
- package/docs/INDEX.md +111 -0
- package/docs/RUNNER.md +582 -0
- package/docs/TEST_CONFIG.md +242 -0
- package/docs/TEST_FRAMEWORK.md +384 -284
- package/docs/WEBSOCKET.md +499 -0
- package/docs/quickstart.md +171 -0
- package/llms.txt +72 -14
- package/package.json +15 -5
- package/schemas/api-config.schema.json +12 -5
- package/schemas/api-load.schema.json +11 -6
- package/schemas/{test-config.schema.json → fastedge-config.test.schema.json} +12 -5
- package/dist/fastedge-cli/.gitkeep +0 -0
- package/dist/frontend/assets/index-CnXStFTd.css +0 -1
- package/dist/frontend/assets/index-FR9Oqsow.js +0 -37
- package/docs/HYBRID_LOADING.md +0 -546
- package/docs/LOCAL_SERVER.md +0 -153
package/README.md
CHANGED
|
@@ -188,14 +188,14 @@ interface FlowOptions {
|
|
|
188
188
|
|
|
189
189
|
Returns a `FullFlowResult` containing `hookResults`, `finalResponse`, and `calculatedProperties`.
|
|
190
190
|
|
|
191
|
-
### `loadConfigFile(path)` — Reuse `
|
|
191
|
+
### `loadConfigFile(path)` — Reuse `fastedge-config.test.json`
|
|
192
192
|
|
|
193
|
-
Load and validate a `
|
|
193
|
+
Load and validate a `fastedge-config.test.json` file, returning a typed `TestConfig`.
|
|
194
194
|
|
|
195
195
|
```typescript
|
|
196
196
|
import { loadConfigFile, defineTestSuite, runAndExit } from '@gcoredev/fastedge-test/test';
|
|
197
197
|
|
|
198
|
-
const config = await loadConfigFile('./
|
|
198
|
+
const config = await loadConfigFile('./fastedge-config.test.json');
|
|
199
199
|
|
|
200
200
|
const suite = defineTestSuite({
|
|
201
201
|
wasmPath: './build/app.wasm',
|
|
@@ -334,13 +334,13 @@ await runner.cleanup();
|
|
|
334
334
|
|
|
335
335
|
## JSON Schemas
|
|
336
336
|
|
|
337
|
-
The package ships JSON Schema files for `
|
|
337
|
+
The package ships JSON Schema files for `fastedge-config.test.json` and all API request/response bodies, enabling IDE autocomplete and validation.
|
|
338
338
|
|
|
339
|
-
Reference from `
|
|
339
|
+
Reference from `fastedge-config.test.json` for VS Code autocomplete:
|
|
340
340
|
|
|
341
341
|
```json
|
|
342
342
|
{
|
|
343
|
-
"$schema": "./node_modules/@gcoredev/fastedge-test/schemas/
|
|
343
|
+
"$schema": "./node_modules/@gcoredev/fastedge-test/schemas/fastedge-config.test.schema.json",
|
|
344
344
|
"envVars": {},
|
|
345
345
|
"secrets": {},
|
|
346
346
|
"properties": {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|