Skip to content

Commit c6060b3

Browse files
committed
gut setupBrowserPage to force failure
1 parent b01af7d commit c6060b3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: test/screenshot/screenshot.test.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import fs from 'fs-extra';
88

9-
import { BASE_SCREENSHOT_TEST } from '../../webpack.config';
9+
// import { BASE_SCREENSHOT_TEST } from '../../webpack.config';
1010

11-
import { webpackCompile } from './lib/compile';
12-
import { openPage, takeScreenshot } from './lib/browser';
11+
// import { webpackCompile } from './lib/compile';
12+
import { takeScreenshot } from './lib/browser';
1313
import { dotifyToString } from './lib/util';
1414
import { diffPNG, readPNG, uploadToImgur } from './lib/image';
1515
import { buttonConfigs } from './config';
@@ -24,9 +24,11 @@ const USER_AGENTS = {
2424

2525
jest.setTimeout(120000);
2626

27-
const setupBrowserPage = (async () => {
27+
const setupBrowserPage = (() => {
2828
console.log('>>> setupBrowserPage has been invoked');
29-
const { browser, page } = await openPage(await webpackCompile(BASE_SCREENSHOT_TEST));
29+
// const { browser, page } = await openPage(await webpackCompile(BASE_SCREENSHOT_TEST));
30+
const browser = { hello: 'I am a browser' };
31+
const page = { hello: 'I am a page' };
3032
console.log('>>> post setupBrowserPage openPage log');
3133

3234
// for (const filename of await fs.readdir(IMAGE_DIR)) {
@@ -48,7 +50,7 @@ const setupBrowserPage = (async () => {
4850

4951
beforeAll(() => {
5052
console.log('>>> beforeAll');
51-
setupBrowserPage;
53+
setupBrowserPage();
5254
});
5355

5456
afterAll(async () => {

0 commit comments

Comments
 (0)