Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Wrong .getAppPath result while running test #52

Open
bgr11n opened this issue Oct 15, 2019 · 1 comment
Open

Wrong .getAppPath result while running test #52

bgr11n opened this issue Oct 15, 2019 · 1 comment

Comments

@bgr11n
Copy link

bgr11n commented Oct 15, 2019

Hi!

I am getting wrong result of app.getAppPath() while running test.

How to reproduce?

Use app.getAppPath() somewhere inside you class, write test for this class, run test.

Actual result:

 C:\Users\Bohdan\projects\electron-first-try\node_modules\@jest-runner\electron\build

Expected result:

 C:\Users\Bohdan\projects\electron-first-try

Or maybe I have wrong configuration somewhere?

@Clearmist
Copy link

I believe this is a limitation of this library. The electron process is spawned by this library within @jest-runner/electron so that directory within node_modules becomes the application path when you try app.getAppPath().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants