regressify 1.0.16 → 1.0.17

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/cli.js CHANGED
@@ -42,7 +42,7 @@ if (command === 'init') {
42
42
  const __filename = fileURLToPath(import.meta.url);
43
43
  const __dirname = dirname(__filename);
44
44
 
45
- const postInstallPath = pathToFileURL(path.join(__dirname, 'generate_tests.js'));
45
+ const postInstallPath = pathToFileURL(path.join(__dirname, 'cli', 'generate_tests.js'));
46
46
  if (fs.existsSync(postInstallPath)) {
47
47
  console.log(chalk.yellow('Generate folder visual_tests ...'));
48
48
  await import(postInstallPath);
@@ -50,7 +50,7 @@ if (command === 'init') {
50
50
  console.log(chalk.red('generate_tests.js not found!'));
51
51
  }
52
52
 
53
- const updatePackageJsonPath = pathToFileURL(path.join(__dirname, 'update-package.js'));
53
+ const updatePackageJsonPath = pathToFileURL(path.join(__dirname, 'cli', 'update-package.js'));
54
54
  if (fs.existsSync(updatePackageJsonPath)) {
55
55
  console.log(chalk.yellow('Update package.json ...'));
56
56
  await import(updatePackageJsonPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regressify",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Visual regression tests support",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/config.ts CHANGED
@@ -50,7 +50,7 @@ const getData = (testSuite: String): TestSuiteModel | undefined => {
50
50
  ];
51
51
 
52
52
  for (let i = 0; i < extensions.length; i++) {
53
- const dataPath = path.resolve(__dirname, `../visual_tests/${testSuite}.tests.${extensions[i].ext}`);
53
+ const dataPath = path.join(process.cwd(), 'visual_tests', `${testSuite}.tests.${extensions[i].ext}`);
54
54
 
55
55
  if (fs.existsSync(dataPath)) {
56
56
  console.log('Data path: ', dataPath);
File without changes
File without changes