@friggframework/devtools 1.1.1-canary.282.4de1ac1.0 → 1.1.1-canary.290.235af37.0

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "1.1.1-canary.282.4de1ac1.0",
4
+ "version": "1.1.1-canary.290.235af37.0",
5
5
  "dependencies": {
6
6
  "@babel/eslint-parser": "^7.18.9",
7
- "@friggframework/core": "1.1.1-canary.282.4de1ac1.0",
7
+ "@friggframework/core": "1.1.1-canary.290.235af37.0",
8
8
  "eslint": "^8.22.0",
9
9
  "eslint-config-prettier": "^8.5.0",
10
10
  "eslint-plugin-json": "^3.1.0",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "4de1ac138121295b795e1e9e0bb9e37bea2e8492"
40
+ "gitHead": "235af376318b3ef47b887619aa0f5619a80f1b7a"
41
41
  }
@@ -1,8 +1,6 @@
1
1
  const { TestMongo } = require('./mongodb');
2
- const { overrideEnvironment} = require('./override-environment');
3
2
 
4
3
  module.exports = async function () {
5
- overrideEnvironment({ STAGE: 'dev'})
6
4
  global.testMongo = new TestMongo();
7
5
  await global.testMongo.start();
8
6
  };
@@ -1,5 +1,3 @@
1
- const { restoreEnvironment } = require('./override-environment');
2
1
  module.exports = async function () {
3
- restoreEnvironment();
4
2
  await global.testMongo.stop();
5
3
  };
@@ -51,8 +51,9 @@ async function createMockIntegration(IntegrationClassDef, userId = null, config
51
51
  integration.id = integration.record._id
52
52
 
53
53
  for (const i in entities){
54
+ if (Object.entries(IntegrationClassDef.modules).length <= i) break
54
55
  const [moduleName, ModuleDef] = Object.entries(IntegrationClassDef.modules)[i];
55
- const module = Auther.getInstance({definition: ModuleDef, userId: userId})
56
+ const module = await Auther.getInstance({definition: ModuleDef, userId: userId})
56
57
  module.entity = entities[i];
57
58
  integration[moduleName] = module;
58
59
  }