6
6
7
7
import fs from 'fs-extra' ;
8
8
9
- import { BASE_SCREENSHOT_TEST } from '../../webpack.config' ;
9
+ // import { BASE_SCREENSHOT_TEST } from '../../webpack.config';
10
10
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' ;
13
13
import { dotifyToString } from './lib/util' ;
14
14
import { diffPNG , readPNG , uploadToImgur } from './lib/image' ;
15
15
import { buttonConfigs } from './config' ;
@@ -24,9 +24,11 @@ const USER_AGENTS = {
24
24
25
25
jest . setTimeout ( 120000 ) ;
26
26
27
- const setupBrowserPage = ( async ( ) => {
27
+ const setupBrowserPage = ( ( ) => {
28
28
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' } ;
30
32
console . log ( '>>> post setupBrowserPage openPage log' ) ;
31
33
32
34
// for (const filename of await fs.readdir(IMAGE_DIR)) {
@@ -48,7 +50,7 @@ const setupBrowserPage = (async () => {
48
50
49
51
beforeAll ( ( ) => {
50
52
console . log ( '>>> beforeAll' ) ;
51
- setupBrowserPage ;
53
+ setupBrowserPage ( ) ;
52
54
} ) ;
53
55
54
56
afterAll ( async ( ) => {
0 commit comments