@iqual/playwright-vrt 0.1.3 → 0.1.4

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.
@@ -5,6 +5,8 @@ import { join } from 'path';
5
5
  // Load URLs from playwright-snapshots/ (shared with snapshots for easy caching)
6
6
  const urlsPath = join(process.cwd(), 'playwright-snapshots', 'urls.json');
7
7
 
8
+ const stylePath = join(process.cwd(), 'tests', 'vrt.css')
9
+
8
10
  if (!existsSync(urlsPath)) {
9
11
  throw new Error(`URLs file not found at ${urlsPath}. Did you run URL collection?`);
10
12
  }
@@ -47,7 +49,7 @@ for (const url of urls) {
47
49
  maxDiffPixels: threshold.maxDiffPixels,
48
50
  maxDiffPixelRatio: threshold.maxDiffPixelRatio,
49
51
  animations: 'disabled',
50
- stylePath: join(process.cwd(), 'tests', 'vrt.css'),
52
+ stylePath: stylePath,
51
53
  timeout: 10000
52
54
  });
53
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqual/playwright-vrt",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Standalone Visual Regression Testing CLI tool using Playwright",
5
5
  "type": "module",
6
6
  "bin": {