fix(server): various fixes related to subs + further improved utils + way quicker tests (#3573)

* fixed test util throwing + added new tests

* more tests

* more tests

* various model tests

* version tests

* removed shitty old tests

* lint fix

* workspaceProjectsUpdated test

* workspace updated on invite

* workspace subs support team changes

* tests fix

* test fix hopefully?
This commit is contained in:
Kristaps Fabians Geikins
2024-12-02 11:30:24 +00:00
committed by GitHub
parent 75d2372719
commit 51579b76ef
28 changed files with 2120 additions and 1109 deletions
@@ -732,14 +732,19 @@ describe('Workspaces GQL CRUD', () => {
})
describe('mutation workspaceMutations.update', () => {
const workspace = {
const workspace: BasicTestWorkspace = {
id: '',
slug: '',
ownerId: '',
name: cryptoRandomString({ length: 6 }),
description: cryptoRandomString({ length: 12 })
}
beforeEach(async () => {
// we want a new workspace for each test
workspace.id = ''
workspace.slug = ''
await createTestWorkspace(workspace, testAdminUser)
})