-
Notifications
You must be signed in to change notification settings - Fork 207
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
TypeError: Cannot assign to read only property 'length' #149
Comments
+1: having the same issue any time I pass anything that isn't a strict primitive to expect() |
+1 same |
+1: Same issue, but for all assertions |
Seems to be caused by A possible workaround for Babel/Babelify usage is including browserify()
.require('expect.js')
.bundle()
.pipe(fs.createWriteStream(path.join(__dirname, '../build/expect.js')))
browserify()
.exclude(['expect.js'])
.add('./test/*.js')
.transform(babelify)
.bundle()
.pipe(fs.createWriteStream(path.join(__dirname, '../build/test.js'))) I can't get the Babelify |
expect.js doesn't play nicely with Babel, so it shouldn't be transformed by Babelify.^1 Note that the ignore option in Babelify is buggy ^2, so this might not work on your end. ^1 Automattic/expect.js#149 ^2 babel/babelify#265
* [site:test] Fix browser tests again expect.js doesn't play nicely with Babel, so it shouldn't be transformed by Babelify.^1 Note that the ignore option in Babelify is buggy ^2, so this might not work on your end. ^1 Automattic/expect.js#149 ^2 babel/babelify#265 * [test:input] Set up HTTP request mocking Set up proper HTTP request mocking by mocking exports with mock-require. Not possible in the browser, but it wasn't before, so this counts as an improvement. Previously done by nock, but this didn't work for requests made through sync-request, as that spawns a child process over which nock has no control. See #68 See 509d911 Close #134 * [test:input] Increase coverage of input plugins See #123 * [package] Add non-npm patch to dependencies See babel/babelify#267
* [site:test] Fix browser tests again expect.js doesn't play nicely with Babel, so it shouldn't be transformed by Babelify.^1 Note that the ignore option in Babelify is buggy ^2, so this might not work on your end. ^1 Automattic/expect.js#149 ^2 babel/babelify#265 * [test:input] Set up HTTP request mocking Set up proper HTTP request mocking by mocking exports with mock-require. Not possible in the browser, but it wasn't before, so this counts as an improvement. Previously done by nock, but this didn't work for requests made through sync-request, as that spawns a child process over which nock has no control. See #68 See 509d911836c7cb7adbc57440ce21a703308e01ff Close #134 * [test:input] Increase coverage of input plugins See #123 * [package] Add non-npm patch to dependencies See babel/babelify#267
Chrome Version: 47.0.2526.106 (64-bit)
throw this error.
Caused by Assertion.prototype.length method.
The text was updated successfully, but these errors were encountered: