Install electron shims in benchmarks

This is needed because some packages may still rely on the ability
to pass null/undefined to path.dirname and friends

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-10-27 13:16:59 -07:00
parent a8935bc48a
commit a22870fa42

View File

@@ -13,6 +13,7 @@ export default async function () {
const ApplicationDelegate = require('../src/application-delegate')
const AtomEnvironment = require('../src/atom-environment')
const TextEditor = require('../src/text-editor')
require('../src/electron-shims')
const exportsPath = path.join(resourcePath, 'exports')
require('module').globalPaths.push(exportsPath) // Add 'exports' to module search path.