-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(deps-dev): bump chai from 4.5.0 to 5.1.1 #15
base: master
Are you sure you want to change the base?
Conversation
49df628
to
9a5a5e3
Compare
Yeah, I came across this the other week... |
This is necessary to update to Chai 5.x which dropped support for being imported into CommonJS code, since ES6 modules are the more modern, standardized module system. This is all mostly boilerplate changes. The one surprising change is that activation.unit.js and ping.unit.js used to require() the module under test inside the describe() callback, rather than at the top level. I can't see that moving it to the top level makes any difference. I think the two modules are wrong to have a top-level `redis` variable that is set by a call to a function because if you call that function twice with two different values you are changing the variable used by the routes returned from the first call. But when they are imported is not relevant; it's the call to the “class” (which in both cases is actually a factory function, and an arrow function at that, not a class in the sense of the `class` keyword or of a prototype-based function called with `new Foo()`) that sets the top-level variable.
Bumps [chai](https://github.com/chaijs/chai) from 4.5.0 to 5.1.1. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](chaijs/chai@v4.5.0...v5.1.1) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
9a5a5e3
to
c5f582d
Compare
@@ -7,14 +7,15 @@ | |||
// Upstream: https://github.com/mochajs/mocha/issues/185 | |||
process.env.NODE_ENV = 'test'; | |||
|
|||
const chai = require('chai'); | |||
const expect = require('chai').expect; | |||
import { expect } from 'chai'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw https://evertpot.com/using-top-level-await-is-bc-break/ which refers to Node growing support for require
ing an ES module in some cases. Which, if it works, would make this PR unnecessary.
A newer version of chai exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
Bumps chai from 4.5.0 to 5.1.1.
Release notes
Sourced from chai's releases.
... (truncated)
Commits
37263c0
fix: support some virtual contexts intoThrow
(#1609)91e58ed
Correct Mocha import instructions (#1611)61159d1
build(deps-dev): bump ip from 1.1.8 to 1.1.9 (#1608)8475d2a
Set up ESLint for JSDoc comments (#1605)936c0ca
5.1.02cf92f5
Fix publish script (#1602)1ba37b5
Set support in same members (#1583)f224339
Assert interface fix (#1601)d504573
Implementiterable
assertion (#1592)640d932
Convert comments in "legal comments" format to jsdoc (#1598)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)