@brillout/test-e2e 0.3.3 → 0.3.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.
@@ -18,12 +18,7 @@ async function testScreenshotFixture() {
18
18
  const pngActual = await takeScreenshot();
19
19
  const fileContent = pngjs_1.PNG.sync.write(pngActual);
20
20
  fs_1.default.writeFileSync(pngFixturPath, fileContent);
21
- fs_1.default.writeFileSync(pngExpectPath, fileContent);
22
- throw new Error([
23
- 'Screenshot fixture missing. Screenshot fixture created at following paths:',
24
- ` - ${pngFixturPath}`,
25
- ` - ${pngExpectPath}`,
26
- ].join('\n'));
21
+ throw new Error(`Screenshot fixture missing. Screenshot fixture created at ${pngFixturPath}. You can now re-run the test and the screenshot fixture test will pass.`);
27
22
  }
28
23
  const pngExpect = pngjs_1.PNG.sync.read(fs_1.default.readFileSync(pngFixturPath));
29
24
  const pngActual = await takeScreenshot();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {