chore: split app to commons and web (squash commit)
This commit is contained in:
1259
packages/hoppscotch-common/src/helpers/terndoc/ecma.json
Normal file
1259
packages/hoppscotch-common/src/helpers/terndoc/ecma.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"!name": "pw-extra",
|
||||
"console": {
|
||||
"assert": {
|
||||
"!type": "fn(assertion: bool, text: string)"
|
||||
},
|
||||
"clear": {
|
||||
"!type": "fn()"
|
||||
},
|
||||
"count": {
|
||||
"!type": "fn(label?: string)"
|
||||
},
|
||||
"debug": "console.log",
|
||||
"dir": {
|
||||
"!type": "fn(object: ?)"
|
||||
},
|
||||
"error": {
|
||||
"!type": "fn(...msg: ?)"
|
||||
},
|
||||
"group": {
|
||||
"!type": "fn(label?: string)"
|
||||
},
|
||||
"groupCollapsed": {
|
||||
"!type": "fn(label?: string)"
|
||||
},
|
||||
"groupEnd": {
|
||||
"!type": "fn()"
|
||||
},
|
||||
"info": {
|
||||
"!type": "fn(...msg: ?)"
|
||||
},
|
||||
"log": {
|
||||
"!type": "fn(...msg: ?)"
|
||||
},
|
||||
"table": {
|
||||
"!type": "fn(data: []|?, columns?: [])"
|
||||
},
|
||||
"time": {
|
||||
"!type": "fn(label: string)"
|
||||
},
|
||||
"timeEnd": {
|
||||
"!type": "fn(label: string)"
|
||||
},
|
||||
"trace": {
|
||||
"!type": "fn()"
|
||||
},
|
||||
"warn": {
|
||||
"!type": "fn(...msg: ?)"
|
||||
}
|
||||
}
|
||||
}
|
||||
11
packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json
Normal file
11
packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!name": "pw-pre",
|
||||
"pw": {
|
||||
"env": {
|
||||
"set": "fn(key: string, value: string)",
|
||||
"get": "fn(key: string) -> string",
|
||||
"getResolve": "fn(key: string) -> string",
|
||||
"resolve": "fn(value: string) -> string"
|
||||
}
|
||||
}
|
||||
}
|
||||
31
packages/hoppscotch-common/src/helpers/terndoc/pw-test.json
Normal file
31
packages/hoppscotch-common/src/helpers/terndoc/pw-test.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"!name": "pw-test",
|
||||
"!define": {
|
||||
"Expectation": {
|
||||
"not": "Expectation",
|
||||
"toBe": "fn(value: ?)",
|
||||
"toBeLevel2xx": "fn()",
|
||||
"toBeLevel3xx": "fn()",
|
||||
"toBeLevel4xx": "fn()",
|
||||
"toBeLevel5xx": "fn()",
|
||||
"toBeType": "fn(type: string)",
|
||||
"toHaveLength": "fn(length: number)",
|
||||
"toInclude": "fn(value: ?)"
|
||||
}
|
||||
},
|
||||
"pw": {
|
||||
"expect": "fn(value: ?) -> Expectation",
|
||||
"response": {
|
||||
"status": "number",
|
||||
"headers": "?",
|
||||
"body": "?"
|
||||
},
|
||||
"env": {
|
||||
"set": "fn(key: string, value: string)",
|
||||
"get": "fn(key: string) -> string",
|
||||
"getResolve": "fn(key: string) -> string",
|
||||
"resolve": "fn(value: string) -> string"
|
||||
},
|
||||
"test": "fn(name: string, func: fn())"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user