@gcoredev/fastedge-test 0.0.1-beta.0 → 0.1.0-beta.2

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 (43) hide show
  1. package/README.md +6 -6
  2. package/bin/fastedge-debug.js +2 -0
  3. package/dist/fastedge-cli/METADATA.json +1 -3
  4. package/dist/fastedge-cli/{fastedge-run-linux-x64-unkown → fastedge-run-darwin-arm64} +0 -0
  5. package/dist/fastedge-cli/fastedge-run-linux-x64 +0 -0
  6. package/dist/fastedge-cli/fastedge-run.exe +0 -0
  7. package/dist/frontend/assets/index-CEFjsU8e.js +35 -0
  8. package/dist/frontend/assets/index-DdlINQc_.css +1 -0
  9. package/dist/frontend/index.html +2 -2
  10. package/dist/lib/index.cjs +329 -112
  11. package/dist/lib/index.js +331 -115
  12. package/dist/lib/runner/HostFunctions.d.ts +8 -0
  13. package/dist/lib/runner/HttpWasmRunner.d.ts +34 -14
  14. package/dist/lib/runner/IStateManager.d.ts +3 -2
  15. package/dist/lib/runner/IWasmRunner.d.ts +18 -1
  16. package/dist/lib/runner/NullStateManager.d.ts +1 -0
  17. package/dist/lib/runner/PortManager.d.ts +17 -19
  18. package/dist/lib/runner/ProxyWasmRunner.d.ts +7 -0
  19. package/dist/lib/runner/standalone.d.ts +1 -1
  20. package/dist/lib/schemas/api.d.ts +8 -2
  21. package/dist/lib/schemas/config.d.ts +4 -1
  22. package/dist/lib/test-framework/index.cjs +330 -114
  23. package/dist/lib/test-framework/index.js +332 -117
  24. package/dist/lib/test-framework/suite-runner.d.ts +1 -1
  25. package/dist/server.js +30 -30
  26. package/docs/API.md +758 -360
  27. package/docs/DEBUGGER.md +151 -0
  28. package/docs/INDEX.md +111 -0
  29. package/docs/RUNNER.md +582 -0
  30. package/docs/TEST_CONFIG.md +242 -0
  31. package/docs/TEST_FRAMEWORK.md +384 -284
  32. package/docs/WEBSOCKET.md +499 -0
  33. package/docs/quickstart.md +171 -0
  34. package/llms.txt +72 -14
  35. package/package.json +17 -6
  36. package/schemas/api-config.schema.json +12 -5
  37. package/schemas/api-load.schema.json +11 -6
  38. package/schemas/{test-config.schema.json → fastedge-config.test.schema.json} +12 -5
  39. package/dist/fastedge-cli/.gitkeep +0 -0
  40. package/dist/frontend/assets/index-CnXStFTd.css +0 -1
  41. package/dist/frontend/assets/index-FR9Oqsow.js +0 -37
  42. package/docs/HYBRID_LOADING.md +0 -546
  43. 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": {}
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import("../dist/server.js");
@@ -1,3 +1 @@
1
- {
2
- "fastedge_run_version": "0.10.2"
3
- }
1
+ {"fastedge_run_version": "v0.15.0"}