@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.
Files changed (41) hide show
  1. package/README.md +6 -6
  2. package/dist/fastedge-cli/METADATA.json +1 -3
  3. package/dist/fastedge-cli/{fastedge-run-linux-x64-unkown → fastedge-run-darwin-arm64} +0 -0
  4. package/dist/fastedge-cli/fastedge-run-linux-x64 +0 -0
  5. package/dist/fastedge-cli/fastedge-run.exe +0 -0
  6. package/dist/frontend/assets/index-CEFjsU8e.js +35 -0
  7. package/dist/frontend/assets/index-DdlINQc_.css +1 -0
  8. package/dist/frontend/index.html +2 -2
  9. package/dist/lib/index.cjs +299 -107
  10. package/dist/lib/index.js +301 -110
  11. package/dist/lib/runner/HostFunctions.d.ts +8 -0
  12. package/dist/lib/runner/HttpWasmRunner.d.ts +34 -14
  13. package/dist/lib/runner/IStateManager.d.ts +3 -2
  14. package/dist/lib/runner/IWasmRunner.d.ts +16 -1
  15. package/dist/lib/runner/NullStateManager.d.ts +1 -0
  16. package/dist/lib/runner/PortManager.d.ts +17 -19
  17. package/dist/lib/runner/ProxyWasmRunner.d.ts +7 -0
  18. package/dist/lib/schemas/api.d.ts +8 -2
  19. package/dist/lib/schemas/config.d.ts +4 -1
  20. package/dist/lib/test-framework/index.cjs +301 -108
  21. package/dist/lib/test-framework/index.js +303 -111
  22. package/dist/lib/test-framework/suite-runner.d.ts +1 -1
  23. package/dist/server.js +30 -29
  24. package/docs/API.md +758 -360
  25. package/docs/DEBUGGER.md +151 -0
  26. package/docs/INDEX.md +111 -0
  27. package/docs/RUNNER.md +582 -0
  28. package/docs/TEST_CONFIG.md +242 -0
  29. package/docs/TEST_FRAMEWORK.md +384 -284
  30. package/docs/WEBSOCKET.md +499 -0
  31. package/docs/quickstart.md +171 -0
  32. package/llms.txt +72 -14
  33. package/package.json +15 -5
  34. package/schemas/api-config.schema.json +12 -5
  35. package/schemas/api-load.schema.json +11 -6
  36. package/schemas/{test-config.schema.json → fastedge-config.test.schema.json} +12 -5
  37. package/dist/fastedge-cli/.gitkeep +0 -0
  38. package/dist/frontend/assets/index-CnXStFTd.css +0 -1
  39. package/dist/frontend/assets/index-FR9Oqsow.js +0 -37
  40. package/docs/HYBRID_LOADING.md +0 -546
  41. 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 `test-config.json`
191
+ ### `loadConfigFile(path)` — Reuse `fastedge-config.test.json`
192
192
 
193
- Load and validate a `test-config.json` file, returning a typed `TestConfig`.
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('./test-config.json');
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 `test-config.json` and all API request/response bodies, enabling IDE autocomplete and validation.
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 `test-config.json` for VS Code autocomplete:
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/test-config.schema.json",
343
+ "$schema": "./node_modules/@gcoredev/fastedge-test/schemas/fastedge-config.test.schema.json",
344
344
  "envVars": {},
345
345
  "secrets": {},
346
346
  "properties": {}
@@ -1,3 +1 @@
1
- {
2
- "fastedge_run_version": "0.10.2"
3
- }
1
+ {"fastedge_run_version": "v0.15.0"}