pw-test.json 765 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "!name": "pw-test",
  3. "!define": {
  4. "Expectation": {
  5. "not": "Expectation",
  6. "toBe": "fn(value: ?)",
  7. "toBeLevel2xx": "fn()",
  8. "toBeLevel3xx": "fn()",
  9. "toBeLevel4xx": "fn()",
  10. "toBeLevel5xx": "fn()",
  11. "toBeType": "fn(type: string)",
  12. "toHaveLength": "fn(length: number)",
  13. "toInclude": "fn(value: ?)"
  14. }
  15. },
  16. "pw": {
  17. "expect": "fn(value: ?) -> Expectation",
  18. "response": {
  19. "status": "number",
  20. "headers": "?",
  21. "body": "?"
  22. },
  23. "env": {
  24. "set": "fn(key: string, value: string)",
  25. "get": "fn(key: string) -> string",
  26. "getResolve": "fn(key: string) -> string",
  27. "resolve": "fn(value: string) -> string"
  28. },
  29. "test": "fn(name: string, func: fn())"
  30. }
  31. }