-
Notifications
You must be signed in to change notification settings - Fork 492
Test fails during set-up with TypeScript 2.6.X #198
Comments
This one is extremely weird - when installing via
Finally found it in the
When installing via
Seems that's why it cannot be found. I'll see if I can figure out where this difference comes from ... For the moment, manually executing |
@DorianGrey Thank you for you work. After all, our real code sometimes didn't work by manual installing, probably depending on the installation order, but thanks anyway. Yes, it's extraordinally weird even though yarn has known troubles around nested dependency I know. |
I'm testing this issue since fixing release of #181, but I wasn't able to reproduce the original behavior before this. The versions of node and npm are same. yarn is now changed to 1.3.2. My procedure is:
Any advice? |
I got same issues after react-scripts-ts upgrade from 2.8.0 to 2.14.0, I fix it by installing jest & ts-jest as dev dependency.
|
I ran into this It's not clear to me why Jest worked on first creating this (very simple app), then broke after clearing and reinstalling my node_modules (my only test was the default App.test.tsx one)... but after upgrading |
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):[email protected] /Users/XXXX/XXXXX
└── UNMET DEPENDENCY [email protected]
npm ERR! missing: [email protected], required by [email protected]
macOS High Sierra
Steps to Reproduce
create-react-app --scripts-version=react-scripts-ts
yarn add typescript@^2.6.0
yarn test
and press [A] to fail in module resolution.It never happens in case of
yarn add [email protected]
, same as dependent one ofreact-scripts-ts
.Expected Behavior
Execute test codes successfully.
Actual Behavior
Fails before actual tests.
Reproducible Demo
https://github.com/karak/ts-jest-error.git
The text was updated successfully, but these errors were encountered: