Skip to content
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

Chai v5.0.0 compatibility #2

Open
DarioMagniPLRM opened this issue Jan 2, 2024 · 0 comments
Open

Chai v5.0.0 compatibility #2

DarioMagniPLRM opened this issue Jan 2, 2024 · 0 comments

Comments

@DarioMagniPLRM
Copy link

Using chai v5.0.0, import ESM is required (BREAKING CHANGES), but the related types (@types/chai-json) is not defined for this library.

Is it possible to create the types definition?

So a code like this can be used:

import chai from 'chai'
import jsonObj from 'chai-json'
chai.use(jsonObj);

instead of

var chai = require('chai');
chai.use(require('chai-json'));

which is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant