This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
Test fails during set-up with TypeScript 2.6.X #198
Open
Description
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
No for npm 4.6.1 nor 5.5.1, but yes for all after installing by yarn
.
Which terms did you search for in User Guide?
'jest' and 'ts-jest'
Environment
node -v
: v8.9.0npm -v
:5.5.1yarn --version
(if you use Yarn): 1.2.1npm ls react-scripts-ts
(if you haven’t ejected):
ts-error@0.1.0 /Users/XXXX/XXXXX
└── UNMET DEPENDENCY react-scripts-ts@2.8.0
npm ERR! missing: react-scripts-ts@2.8.0, required by ts-error@0.1.0
macOS High Sierra
Steps to Reproduce
- Created project with
create-react-app --scripts-version=react-scripts-ts
- Upgrade typescript with
yarn add typescript@^2.6.0
- Run tests
yarn test
and press [A] to fail in module resolution.
FAIL src/App.test.tsx
● Test suite failed to run
Cannot find module 'ts-jest' from 'App.test.tsx'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
at Object.<anonymous> (src/App.test.tsx:1:103)
It never happens in case of yarn add typescript@2.5.3
, same as dependent one of react-scripts-ts
.
Expected Behavior
Execute test codes successfully.
Actual Behavior
Fails before actual tests.
Reproducible Demo
Metadata
Metadata
Assignees
Labels
No labels