question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4.3.0 breaks testem

See original GitHub issue

Describe the bug As of the v4.3.0 release, testem (and therefore all CI runs which use it, so this will shortly be hitting the whole Ember.js community and any others as they upgrade or for runs which check against “drifted dependencies”) is failing with the following error:

io.connect is not a function

Inspecting io shows that it is in fact the lookup function (dist).

Screen Shot 2021-10-14 at 16 31 05

To Reproduce

Unfortunately, this is a bit involved, and I don’t have a good minimal reproduction yet. I will add one later. For now, I will link directly to the relevant bits of testem’s source.

Socket.IO server version: 4.3.0

Server

  • importing socket.io as `const socketIO = require(‘socket.io’);
  • using the imported value as a function

Socket.IO client version: x.y.z

Client

Expected behavior Given 4.3.0 was a patch release, testem’s previous usage should continue to work without issue.

Platform:

  • Device: Mac or Linux
  • OS: Ubuntu latest, macOS 11.6, etc.

Additional context I strongly suspect (but haven’t yet been able to prove) that this is related to either the engine.io bump, serving ESM, or the intersection of the two.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

ant design v4 breaks react testing library tests for Select and ...
In antd v3 it used to be possible to open a Select by doing selectHtmlElement.click() . You can test in the chrome dev...
Read more >
COVID-19 Emergency Temporary Standards Frequently ...
Testing Q&A number(s): 2, 3, and 4; Outbreaks and the "Exposed Workplace" Q&A number(s): 5, 7, 8, 9, 10, and 14; Exclusion Pay...
Read more >
Functional Testing: A Complete Guide with Types and Example
Functional Testing Techniques · #1) End-user based/System Tests · #2) Equivalence Tests · #3) Boundary Value Tests · #4) Decision-based Tests · #5) ......
Read more >
Pop 3.0 Testing Hours and Locations - USC Student Health
Pop Testing is the COVID-19 testing program for USC faculty, staff, students and approved campus residents and contractors.
Read more >
IDDSI Testing Methods
If forks are not available, chopsticks can be used to pick up and break apart food to determine its characteristics and behaviour. Finger...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found