This commit is contained in:
Rory Powell 2022-12-01 15:00:56 +00:00
parent 28b29ea7a9
commit 64ca3a0dc5
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
"prepack": "cp package.json dist",
"build": "tsc -p tsconfig.build.json",
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"test": "jest --coverage",
"test": "jest --coverage --maxWorkers=2",
"test:watch": "jest --watchAll"
},
"dependencies": {

View File

@ -22,7 +22,7 @@
"build:docker": "docker build . -t worker-service --label version=$BUDIBASE_RELEASE_VERSION",
"dev:stack:init": "node ./scripts/dev/manage.js init",
"dev:builder": "npm run dev:stack:init && nodemon",
"test": "jest --coverage --runInBand",
"test": "jest --coverage --maxWorkers=2",
"test:watch": "jest --watch",
"env:multi:enable": "node scripts/multiTenancy.js enable",
"env:multi:disable": "node scripts/multiTenancy.js disable",

View File

@ -276,7 +276,7 @@ describe("/api/global/users", () => {
await config.createSession(nonAdmin)
const newUser = structures.users.user()
await api.users.saveUser(newUser, 403, config.authHeaders(nonAdmin))
await config.api.users.saveUser(newUser, 403, config.authHeaders(nonAdmin))
})
})
@ -440,7 +440,7 @@ describe("/api/global/users", () => {
const nonAdmin = await config.createUser(structures.users.builderUser())
await config.createSession(nonAdmin)
await api.users.saveUser(existingUser, 200, config.authHeaders(nonAdmin))
await config.api.users.saveUser(existingUser, 200, config.authHeaders(nonAdmin))
})
})