Closed ThePumpingLemma closed 7 years ago
Any ideas how we can run the different versions via travis? And if doable, can we include this in the PR?
It's a little tricky because the package explicitly installs a version as a dev dependency. Ideally for this case, it would be only a peer dependency and we would have different versions installed in Travis' before_install
hooks. Not convenient for local dev though.
Maybe install as normal and override the version with a second install?
Okay, I made separate envs for explicitly installing each chai version. Let me know if you have suggestions for better approaches.
You'd let the dev dep range match the peer dep range, and then manually install the desired chai version in the matrix install step.
Okay, I'll give that a shot.
Should I take a similar approach for cheerio or is that overkill?
I'd say that's probably overkill :-)
Cool. Tests appear to be passing. :+1:
@ThePumpingLemma thank you for your contributions. @ljharb thanks for leading on this
Ideally, you would want to run a test harness for both versions if you plan on supporting 3.x for a while.