Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Using jest-extended? #435

Open
ziriax opened this issue Oct 26, 2018 · 1 comment
Open

Using jest-extended? #435

ziriax opened this issue Oct 26, 2018 · 1 comment

Comments

@ziriax
Copy link

ziriax commented Oct 26, 2018

I guess it is not possible using to use jest-extended without ejecting?

@DorianGrey
Copy link
Collaborator

At least it should work without ejecting.

According to the docs of that package, jest-extended should be added via the setupTestFrameworkScriptFile configuration of jest. By default, the template picks up <rootDir>/src/testSetup.ts automatically, if it is present:

const setupTestsFile = fs.existsSync(paths.testsSetup)
? '<rootDir>/src/setupTests.ts'
: undefined;

jest-extended in particular also comes with proper typings.

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