mirror of
https://github.com/coder/coder.git
synced 2026-06-05 22:18:20 +00:00
56a69b7eea
* Fix type error in first user setup * Save auth state * Add template creation - wip Remove saved auth state because it wasn't working * Try adding the rest of the tests Can't see if they work yet, waiting on a release * Update playwright * Update gitignore * Write tests * Format * Update ignores * Check that start worked Co-authored-by: Ben Potter <ben@coder.com> Co-authored-by: Ben Potter <ben@coder.com>
17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
import axios from "axios"
|
|
import { createFirstUser } from "../src/api/api"
|
|
import * as constants from "./constants"
|
|
|
|
const globalSetup = async (): Promise<void> => {
|
|
axios.defaults.baseURL = `http://localhost:${constants.basePort}`
|
|
// Create a user
|
|
await createFirstUser({
|
|
email: constants.email,
|
|
username: constants.username,
|
|
password: constants.password,
|
|
trial: false,
|
|
})
|
|
}
|
|
|
|
export default globalSetup
|