@iqual/playwright-vrt 0.1.2 → 0.1.3

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.
@@ -7,6 +7,7 @@ const vrtConfig = process.env.VRT_CONFIG
7
7
 
8
8
  export default {
9
9
  testDir: './tests',
10
+ testMatch: '**/*.spec.js', // JavaScript test files
10
11
  fullyParallel: true,
11
12
  retries: process.env.CI ? 2 : 1,
12
13
  workers: 2,
@@ -9,7 +9,7 @@ if (!existsSync(urlsPath)) {
9
9
  throw new Error(`URLs file not found at ${urlsPath}. Did you run URL collection?`);
10
10
  }
11
11
 
12
- const urls: string[] = JSON.parse(readFileSync(urlsPath, 'utf-8'));
12
+ const urls = JSON.parse(readFileSync(urlsPath, 'utf-8'));
13
13
 
14
14
  // Load config for threshold settings
15
15
  const vrtConfig = process.env.VRT_CONFIG
@@ -47,7 +47,8 @@ for (const url of urls) {
47
47
  maxDiffPixels: threshold.maxDiffPixels,
48
48
  maxDiffPixelRatio: threshold.maxDiffPixelRatio,
49
49
  animations: 'disabled',
50
- stylePath: join(process.cwd(), 'tests', 'vrt.css')
51
- }, { timeout: 10000 });
50
+ stylePath: join(process.cwd(), 'tests', 'vrt.css'),
51
+ timeout: 10000
52
+ });
52
53
  });
53
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqual/playwright-vrt",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Standalone Visual Regression Testing CLI tool using Playwright",
5
5
  "type": "module",
6
6
  "bin": {