-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: new integration create and initaite connection + reinitiate and update API schema #1189
Changes from 14 commits
c3fc6de
cad0ca9
7be284f
2b99c9d
e9a3936
28cfbba
22be508
0d39bda
97f7df5
4c6112a
ebe6da7
aa6b246
cded5b2
bbde3ac
6aac522
7fd7f3f
3cd6021
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const env = process.env.TEST_ENV || "prod" | ||
export const env = process.env.TEST_ENV || "staging" | ||
const CURRENT_FILE_DIR = __dirname; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default environment changed from 'prod' to 'staging' which could affect production deployments if TEST_ENV is not explicitly set. This is a potentially risky change. |
||
|
||
export type BACKEND_CONFIG = { | ||
|
@@ -12,6 +12,6 @@ export const getTestConfig = (): BACKEND_CONFIG => { | |
return JSON.parse(JSON.stringify(require(path))) as unknown as BACKEND_CONFIG; | ||
} catch (error) { | ||
console.error("Error loading test config file:", error); | ||
throw new Error("Error loading test config file. You can create test.{{env}}.json file in the config folder."); | ||
throw new Error(`Error loading test config file. You can create test.config.${env}.json file in the config folder.`); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -14,7 +14,7 @@ | |||||
"test:watch": "jest --testMatch=\"**/*.spec.ts\" --watch", | ||||||
"test:coverage": "jest --coverage --testMatch=\"**/*.spec.ts\"", | ||||||
"type-docs": "typedoc", | ||||||
"openapispec:generate": "npx @hey-api/openapi-ts", | ||||||
"openapispec:generate": "npx @hey-api/openapi-ts ", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 📝 Committable Code Suggestion
Suggested change
|
||||||
"run:cli": "ts-node src/cli/index.ts", | ||||||
"run:sample": "ts-node sample.ts", | ||||||
"prettier": "prettier --write 'src/**/*.{ts,js,cjs}'", | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sed command lacks error handling, potentially failing silently on some platforms.