-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Regroup #175
Comments
I made those changes in 174 mostly based off of jestjs/jest#3202 and jestjs/jest#770, and from this section of the README: https://github.com/facebook/jest#using-babel there is one alternate approach listed there which is
Can you track down any specific lines of code with the error messages? Are those Idyll errors, or coming from the test runner? I can't really tell if these are still babel/jest errors you are seeing or something else. FWIW - I just tried cloning from master, running |
The
And
|
Yeah, those are passing - they were passing on Travis too when I merged. I'll see if I can come up with any ideas for the ReactNoopUpdateQueue stuff, but haven't been able to reproduce yet - seems related to react versions maybe?
… On Sep 23, 2017, at 1:44 PM, Ben Clinkinbeard ***@***.***> wrote:
The idyll-components and idyll-document tests are passing for you? I check out master, install deps, and get this. No other info.
~/Code/idyll/packages/idyll-components master*
❯ yarn test
yarn test v1.0.2
$ cross-env BABEL_ENV=test jest
FAIL test/components.js
● Test suite failed to run
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.relative (path.js:1264:5)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.646s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
And
~/Code/idyll/packages/idyll-document master*
❯ yarn test
yarn test v1.0.2
$ cross-env BABEL_ENV=test jest
FAIL test/component.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
FAIL test/vars.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
FAIL test/nodes.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
Test Suites: 3 failed, 3 total
Tests: 0 total
Snapshots: 0 total
Time: 0.931s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't have any idea what is going on and there are so many potential points of failure. Are you using lerna commands at all? Or just yarn? Can you tell me what versions of everything you're running?
________________________________
From: Matthew Conlen <[email protected]>
Sent: Saturday, September 23, 2017 6:17:30 PM
To: idyll-lang/idyll
Cc: Ben Clinkinbeard; Author
Subject: Re: [idyll-lang/idyll] Regroup (#175)
Yeah, those are passing - they were passing on Travis too when I merged. I'll see if I can come up with any ideas for the ReactNoopUpdateQueue stuff, but haven't been able to reproduce yet - seems related to react versions maybe?
On Sep 23, 2017, at 1:44 PM, Ben Clinkinbeard ***@***.***> wrote:
The idyll-components and idyll-document tests are passing for you? I check out master, install deps, and get this. No other info.
~/Code/idyll/packages/idyll-components master*
❯ yarn test
yarn test v1.0.2
$ cross-env BABEL_ENV=test jest
FAIL test/components.js
● Test suite failed to run
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.relative (path.js:1264:5)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.646s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
And
~/Code/idyll/packages/idyll-document master*
❯ yarn test
yarn test v1.0.2
$ cross-env BABEL_ENV=test jest
FAIL test/component.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
FAIL test/vars.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
FAIL test/nodes.js
● Test suite failed to run
Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
at Resolver.resolveModule (../../node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:192:17)
at Object.<anonymous> (../../node_modules/react/lib/ReactNoopUpdateQueue.js:13:15)
Test Suites: 3 failed, 3 total
Tests: 0 total
Snapshots: 0 total
Time: 0.931s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#175 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAIkN5YvKZpYpv_tU1wTP__NcQgEf8zOks5slYN6gaJpZM4PhkhO>.
|
No, I'm not using any lerna commands or anything complicated - just
I'm on node v6.9.4 and yarn 0.27.5 with workspaces enabled. These are a little old, but these tests passing makes me thing its not a node or yarn version thing (that tests node 6-8, using yarn 1.0.1. These errors aren't exactly what your seeing, but seem close jestjs/jest#2218 Do you see the same errors with a completely clean clone from github? |
Also, besides the tests are things working for you? Can you run the editor? To me this seems like either an npm/dependency error, or something with jest+babel that for some reason is working for me but still has issues |
Nope, running the editor says |
Okay - I'm seeing the same thing there at least. I think because BABEL_ENV isn't set and we end up with an undefined here. I'll push a fix for that, and see if I can't get jest working using this package.json method
instead of the babelrc method |
A fresh clone doesn't work either, but I also can't run I don't really understand the whole empty transform thing, but it might be worth simplifying the
Taking |
Adding a fallback default to
using that simplified one you posted above i'm getting errors for missing object spread
one thing that I was doing when testing yesterday was just hardcoding the babel config (taking the I'm pretty confused at this point |
😕 We have an older jest dependency in |
Isolated repo showing the/similar issue. https://github.com/bclinkinbeard/wth |
96e5f78 is the last commit where I can get the tests to pass. |
OK, things seem to be stable now, thank glob. For posterity, Jest v21.1.0 seemed to be the culprit as rolling back to v20.0.4 (and removing I plan to expand the tests significantly in the coming days, and we shall never again merge a PR that is failing CI. |
Things have gotten into a weird state and I think we need to resolve some issues before going any further. I don't know where the issues are coming from but I flailed all day yesterday with bizarre issues and failures. Between Lerna, Babel, Jest, and React, I don't know where the issues lie but they're disconcerting and super frustrating. I think we need to get all the tests working before we do anything else.
idyll-components
andidyll-document
tests are failing, even after fix tests with babel + jest #174TypeError: Path must be a string. Received undefined
,Cannot find module 'fbjs/lib/warning' from 'ReactNoopUpdateQueue.js'
, etc.Some notes:
NODE_ENV
totest
so we shouldn't need to call anything butjest
from thepackage.json
.babel-jest
but that is supposed to come withjest
by defaultbabel-preset-es2015
when running the tests but it's not listed as a dependency and it's deprecatedThe text was updated successfully, but these errors were encountered: