Skip to content

Commit

Permalink
update test fixture configuration and file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbenw committed Apr 23, 2024
1 parent 1a07b90 commit 2d33b42
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 11 additions & 7 deletions test/electron/fixtures/app/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<title>Electron Test Runner</title>
<title>Runner</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body style="background: white;">
Expand Down
2 changes: 1 addition & 1 deletion test/electron/fixtures/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down
7 changes: 1 addition & 6 deletions test/electron/fixtures/app/webpack.main.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down
6 changes: 1 addition & 5 deletions test/electron/fixtures/app/webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ readdirSync('./preloads').forEach(name => {
})

module.exports = {
// Put your normal webpack config below here
devtool: 'hidden-source-map',
entry: entrypoints,
output: {
Expand All @@ -21,8 +20,5 @@ module.exports = {
},
plugins: [
new webpack.ProgressPlugin()
],
module: {
rules: require('./webpack.rules')
}
]
}

0 comments on commit 2d33b42

Please sign in to comment.