test fix
This commit is contained in:
parent
28b29ea7a9
commit
64ca3a0dc5
|
@ -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": {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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))
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue