|
@@ -5,7 +5,6 @@ import { pipe } from "fp-ts/function"
|
|
import * as O from "fp-ts/Option"
|
|
import * as O from "fp-ts/Option"
|
|
import { runTestScript, TestDescriptor } from "@hoppscotch/js-sandbox"
|
|
import { runTestScript, TestDescriptor } from "@hoppscotch/js-sandbox"
|
|
import { isRight } from "fp-ts/Either"
|
|
import { isRight } from "fp-ts/Either"
|
|
-import { isJSONContentType } from "@hoppscotch/data"
|
|
|
|
import {
|
|
import {
|
|
getCombinedEnvVariables,
|
|
getCombinedEnvVariables,
|
|
getFinalEnvsFromPreRequest,
|
|
getFinalEnvsFromPreRequest,
|
|
@@ -14,6 +13,7 @@ import { getEffectiveRESTRequest } from "./utils/EffectiveURL"
|
|
import { HoppRESTResponse } from "./types/HoppRESTResponse"
|
|
import { HoppRESTResponse } from "./types/HoppRESTResponse"
|
|
import { createRESTNetworkRequestStream } from "./network"
|
|
import { createRESTNetworkRequestStream } from "./network"
|
|
import { HoppTestData, HoppTestResult } from "./types/HoppTestResult"
|
|
import { HoppTestData, HoppTestResult } from "./types/HoppTestResult"
|
|
|
|
+import { isJSONContentType } from "./utils/contenttypes"
|
|
import { getRESTRequest, setRESTTestResults } from "~/newstore/RESTSession"
|
|
import { getRESTRequest, setRESTTestResults } from "~/newstore/RESTSession"
|
|
|
|
|
|
const getTestableBody = (res: HoppRESTResponse & { type: "success" }) => {
|
|
const getTestableBody = (res: HoppRESTResponse & { type: "success" }) => {
|