feat: add test

This commit is contained in:
crazywoola 2023-05-15 22:46:18 +08:00
parent 7d00e0e747
commit f360e3d183
3 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}

View File

@ -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`

View File

@ -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"
}
}