@zohodesk/testinglibrary 0.0.48-n20-experimental → 0.0.49-n20-experimental

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.
@@ -35,9 +35,10 @@ function scanDir(dir, registry) {
35
35
  try {
36
36
  const data = JSON.parse(_fs.default.readFileSync(fullPath, 'utf8'));
37
37
  for (const [operationId, config] of Object.entries(data)) {
38
- if (!registry[operationId]) {
39
- registry[operationId] = config;
38
+ if (registry[operationId]) {
39
+ throw new Error(`Duplicate cleanup rule for "${operationId}" found in ${fullPath}. ` + `Each operationId must have exactly one cleanup definition across all *.cleanup.json files.`);
40
40
  }
41
+ registry[operationId] = config;
41
42
  }
42
43
  } catch (err) {
43
44
  _logger.Logger.log(_logger.Logger.FAILURE_TYPE, `Failed to parse cleanup file: ${fullPath} - ${err.message}`);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.0.48-n20-experimental",
3
+ "version": "0.0.49-n20-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.0.48-n20-experimental",
9
+ "version": "0.0.49-n20-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.0.48-n20-experimental",
3
+ "version": "0.0.49-n20-experimental",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node bin/postinstall.js",