We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853744b commit e3ec07aCopy full SHA for e3ec07a
__tests__/mock_package.json
@@ -1,3 +1,6 @@
1
{
2
- "isMock": true
+ "isMock": true,
3
+ "devDependencies": {
4
+ "electron": "^7.0.0"
5
+ }
6
}
__tests__/webpackConfig.spec.js
@@ -12,7 +12,7 @@ const mockApi = {
12
// Mock api.resolve paths for tests
13
if (path.match(/\.\/node_modules$/)) {
14
return 'nodeModulesPath'
15
- } else if (path.match(/^.\/package.json/)) {
+ } else if (path.match(/^(\.\/)?package.json/)) {
16
return '../__tests__/mock_package.json'
17
} else if (path.match('./node_modules/mockExternal/package.json')) {
18
return 'mockExternalPath'
0 commit comments