Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path for running tests #1

Closed
wants to merge 2 commits into from
Closed

Fix path for running tests #1

wants to merge 2 commits into from

Conversation

jollytoad
Copy link

The change of the appSrc path from 'src' to 'src/app' causes 'yarn test' to fail to find any tests as resolves the <rootDir> to the parent of appSrc and then searches in <rootDir>/src for tests, which resolves to 'src/src', this PR fixes this to take two parents from appSrc.

The bug is easily verified by creating a fresh app using: create-react-app electron-vanilla-app --scripts-version=react-scripts-ts-electron

and running 'yarn test'

btw, this has been a incredibly useful starter for my Electron/Typescript/React app, thanks for the great work @swengorschewski

@zetaron
Copy link

zetaron commented Dec 19, 2017

@swengorschewski Hi there, could you merge this please?

We've recently created one of our projects using this module and are currently unable to get our tests working due to this bug.
And we'd rather not eject for such an easy fix.

Thanks

@mikew
Copy link

mikew commented Jan 15, 2018

@zetaron FYI it's possible to add electron support on top of react-scripts-ts, which this is based on.

@jollytoad jollytoad closed this by deleting the head repository Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants