mirror of https://github.com/langgenius/dify.git
feat: add test
This commit is contained in:
parent
7d00e0e747
commit
f360e3d183
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
"@babel/preset-env"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import axios from 'axios'
|
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: {
|
application: {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: () => `/parameters`
|
url: () => `/parameters`
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,20 @@
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "next dev"
|
"test": "jest"
|
||||||
|
},
|
||||||
|
"jest": {
|
||||||
|
"transform": {
|
||||||
|
"^.+\\.[t|j]sx?$": "babel-jest"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.3.5"
|
"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