mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:06:51 +08:00
feat: add test
This commit is contained in:
parent
7d00e0e747
commit
f360e3d183
5
sdks/nodejs-client/babel.config.json
Normal file
5
sdks/nodejs-client/babel.config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"presets": [
|
||||
"@babel/preset-env"
|
||||
]
|
||||
}
|
||||
@ -1,8 +1,8 @@
|
||||
import axios from 'axios'
|
||||
|
||||
const BASE_URL = 'https://api.dify.ai/v1'
|
||||
export const BASE_URL = 'https://api.dify.ai/v1'
|
||||
|
||||
const routes = {
|
||||
export const routes = {
|
||||
application: {
|
||||
method: 'GET',
|
||||
url: () => `/parameters`
|
||||
|
||||
@ -15,9 +15,20 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "next dev"
|
||||
"test": "jest"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
"^.+\\.[t|j]sx?$": "babel-jest"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.21.8",
|
||||
"@babel/preset-env": "^7.21.5",
|
||||
"babel-jest": "^29.5.0",
|
||||
"jest": "^29.5.0"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user