@budibase/worker 2.3.18-alpha.0 → 2.3.18-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jest.config.ts CHANGED
@@ -12,24 +12,19 @@ const config: Config.InitialOptions = {
12
12
  transform: {
13
13
  "^.+\\.ts?$": "@swc/jest",
14
14
  },
15
- }
16
-
17
- if (!process.env.CI) {
18
- // use sources when not in CI
19
- config.moduleNameMapper = {
15
+ moduleNameMapper: {
20
16
  "@budibase/backend-core/(.*)": "<rootDir>/../backend-core/$1",
21
17
  "@budibase/backend-core": "<rootDir>/../backend-core/src",
22
18
  "@budibase/types": "<rootDir>/../types/src",
23
- }
24
- // add pro sources if they exist
25
- if (fs.existsSync("../../../budibase-pro")) {
26
- config.moduleNameMapper["@budibase/pro/(.*)"] =
27
- "<rootDir>/../../../budibase-pro/packages/pro/$1"
28
- config.moduleNameMapper["@budibase/pro"] =
29
- "<rootDir>/../../../budibase-pro/packages/pro/src"
30
- }
31
- } else {
32
- console.log("Running tests with compiled dependency sources")
19
+ },
20
+ }
21
+
22
+ // add pro sources if they exist
23
+ if (fs.existsSync("../../../budibase-pro")) {
24
+ config.moduleNameMapper["@budibase/pro/(.*)"] =
25
+ "<rootDir>/../../../budibase-pro/packages/pro/$1"
26
+ config.moduleNameMapper["@budibase/pro"] =
27
+ "<rootDir>/../../../budibase-pro/packages/pro/src"
33
28
  }
34
29
 
35
30
  export default config
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.3.18-alpha.0",
4
+ "version": "2.3.18-alpha.2",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "build:docker": "docker build . -t worker-service --label version=$BUDIBASE_RELEASE_VERSION",
23
23
  "dev:stack:init": "node ./scripts/dev/manage.js init",
24
24
  "dev:builder": "npm run dev:stack:init && nodemon",
25
- "test": "jest --coverage --maxWorkers=2",
25
+ "test": "jest --coverage --runInBand",
26
26
  "test:watch": "jest --watch",
27
27
  "env:multi:enable": "node scripts/multiTenancy.js enable",
28
28
  "env:multi:disable": "node scripts/multiTenancy.js disable",
@@ -36,10 +36,10 @@
36
36
  "author": "Budibase",
37
37
  "license": "GPL-3.0",
38
38
  "dependencies": {
39
- "@budibase/backend-core": "2.3.18-alpha.0",
40
- "@budibase/pro": "2.3.17",
41
- "@budibase/string-templates": "2.3.18-alpha.0",
42
- "@budibase/types": "2.3.18-alpha.0",
39
+ "@budibase/backend-core": "2.3.18-alpha.2",
40
+ "@budibase/pro": "2.3.18-alpha.1",
41
+ "@budibase/string-templates": "2.3.18-alpha.2",
42
+ "@budibase/types": "2.3.18-alpha.2",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -100,5 +100,5 @@
100
100
  "typescript": "4.7.3",
101
101
  "update-dotenv": "1.1.1"
102
102
  },
103
- "gitHead": "f4dd710b75eb0a7a65e6f9d8b8f709d3b76c435b"
103
+ "gitHead": "4321a07944ae4653d6ea716bf4c2ba588f443660"
104
104
  }
@@ -54,6 +54,8 @@ export async function init() {
54
54
  export async function shutdown() {
55
55
  if (pwResetClient) await pwResetClient.finish()
56
56
  if (invitationClient) await invitationClient.finish()
57
+ // shutdown core clients
58
+ await redis.clients.shutdown()
57
59
  console.log("Redis shutdown")
58
60
  }
59
61