@centreon/e2e-config 1.0.0-MON-212077-web-e2e-config-package.0 → 1.0.0-MON-212077-web-e2e-config-package.1

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.
@@ -49,14 +49,15 @@ export default (
49
49
  });
50
50
  }
51
51
 
52
- // Save the testRetries object to a file in the e2e/results directory
53
- const resultFilePath = path.join(
54
- __dirname,
55
- '../../../../tests/e2e/results',
56
- 'retries.json'
57
- );
52
+ // Save the testRetries object in the results directory of the consuming
53
+ // e2e project, wherever this package is installed.
54
+ const resultsDirectory = path.join(config.projectRoot, 'results');
55
+ fs.mkdirSync(resultsDirectory, { recursive: true });
58
56
 
59
- fs.writeFileSync(resultFilePath, JSON.stringify(testRetries, null, 2));
57
+ fs.writeFileSync(
58
+ path.join(resultsDirectory, 'retries.json'),
59
+ JSON.stringify(testRetries, null, 2)
60
+ );
60
61
  });
61
62
 
62
63
  return config;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/e2e-config",
3
3
  "description": "Centreon shared Cypress e2e configuration, commands and tasks (QA-owned)",
4
- "version": "1.0.0-MON-212077-web-e2e-config-package.0",
4
+ "version": "1.0.0-MON-212077-web-e2e-config-package.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon.git",