mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
16 lines
412 B
TypeScript
16 lines
412 B
TypeScript
import axios from "axios"
|
|
import { postFirstUser } from "../src/api/api"
|
|
import * as constants from "./constants"
|
|
|
|
const globalSetup = async (): Promise<void> => {
|
|
axios.defaults.baseURL = "http://localhost:3000"
|
|
await postFirstUser({
|
|
email: constants.email,
|
|
organization: constants.organization,
|
|
username: constants.username,
|
|
password: constants.password,
|
|
})
|
|
}
|
|
|
|
export default globalSetup
|