diff --git a/package-lock.json b/package-lock.json index 6bd7ea4ed..5cf3c20b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,7 @@ "metro-react-native-babel-preset": "^0.58.0", "ncp": "^2.0.0", "node-fetch": "^2.6.0", - "playwright": "^1.43.1", + "playwright": "^1.10.0", "proxyquire": "^2.1.3", "ps-list": "^7.2.0", "react": "^16.13.1", diff --git a/package.json b/package.json index 9b7cc7be5..43c9c95e8 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "metro-react-native-babel-preset": "^0.58.0", "ncp": "^2.0.0", "node-fetch": "^2.6.0", - "playwright": "^1.43.1", + "playwright": "^1.10.0", "proxyquire": "^2.1.3", "ps-list": "^7.2.0", "react": "^16.13.1", diff --git a/test/electron/fixtures/app/forge.config.js b/test/electron/fixtures/app/forge.config.js index 6a909151d..c55f4377c 100644 --- a/test/electron/fixtures/app/forge.config.js +++ b/test/electron/fixtures/app/forge.config.js @@ -5,23 +5,27 @@ module.exports = { packagerConfig: { asar: true }, - rebuildConfig: {}, makers: [ { name: '@electron-forge/maker-squirrel', - config: {} - }, - { - name: '@electron-forge/maker-zip', - platforms: ['darwin'] + config: { + name: 'Runner' + } }, { name: '@electron-forge/maker-deb', config: {} }, + { + name: '@electron-forge/maker-dmg' + }, { name: '@electron-forge/maker-rpm', config: {} + }, + { + name: '@electron-forge/maker-zip', + platforms: ['darwin'] } ], plugins: [ @@ -37,7 +41,7 @@ module.exports = { config: './webpack.renderer.config.js', entryPoints: [ { - html: './src/index.html', + html: './index.html', js: './renderer.js', name: 'main_window' } diff --git a/test/electron/fixtures/app/src/index.html b/test/electron/fixtures/app/index.html similarity index 99% rename from test/electron/fixtures/app/src/index.html rename to test/electron/fixtures/app/index.html index 450478760..9f649c574 100644 --- a/test/electron/fixtures/app/src/index.html +++ b/test/electron/fixtures/app/index.html @@ -2,7 +2,7 @@ - Electron Test Runner + Runner diff --git a/test/electron/fixtures/app/main.js b/test/electron/fixtures/app/main.js index fc53d5218..4970c1b78 100644 --- a/test/electron/fixtures/app/main.js +++ b/test/electron/fixtures/app/main.js @@ -4,7 +4,7 @@ const { unhandledRejection, crash, notify -} = require('./src/errors.js') +} = require('./src/errors') const configFile = process.env.BUGSNAG_CONFIG || 'default' // eslint-disable-next-line no-undef const bugsnagConfig = __non_webpack_require__(`./${configFile}`) diff --git a/test/electron/fixtures/app/webpack.main.config.js b/test/electron/fixtures/app/webpack.main.config.js index a638dcbf1..79b1fc84e 100644 --- a/test/electron/fixtures/app/webpack.main.config.js +++ b/test/electron/fixtures/app/webpack.main.config.js @@ -7,13 +7,8 @@ readdirSync('./configs').forEach(name => { }) module.exports = { - /** - * This is the main entry point for your application, it's the first file - * that runs in the main process. - */ - entry: entrypoints, - // Put your normal webpack config below here devtool: 'hidden-source-map', + entry: entrypoints, output: { filename: '[name].js' }, diff --git a/test/electron/fixtures/app/webpack.renderer.config.js b/test/electron/fixtures/app/webpack.renderer.config.js index 71f62ba02..06512d404 100644 --- a/test/electron/fixtures/app/webpack.renderer.config.js +++ b/test/electron/fixtures/app/webpack.renderer.config.js @@ -7,7 +7,6 @@ readdirSync('./preloads').forEach(name => { }) module.exports = { - // Put your normal webpack config below here devtool: 'hidden-source-map', entry: entrypoints, output: { @@ -21,8 +20,5 @@ module.exports = { }, plugins: [ new webpack.ProgressPlugin() - ], - module: { - rules: require('./webpack.rules') - } + ] }