issues Search Results · repo:chaijs/chai language:JavaScript
Filter by
964 results
(88 ms)964 results
inchaijs/chai (press backspace or delete to remove)We should add async support to the core. This means chai-as-promised will no longer be needed in most cases (but will
still be useful if you prefer the style it uses).
This kind of API:
expect(val).resolves.to.equal(303); ...
43081j
- Opened 19 days ago
- #1674
The chai-string plugin has the equalIgnoreCase and containIgnoreCase methods, but no startWithIgnoreCase or
endWithIgnoreCase which could be also handy.
alekdavis
- 6
- Opened on Feb 7
- #1670
Is there a way to get chai to simply return a true/false rather than printing anything to the console? I had a look at
the docs on the website but couldn t find anything obvious about configuring chai ...
Pomax
- 3
- Opened on Jan 9
- #1661
Problem
My mocha setup has traditionally looked something like this:
mocha config excerpt
require : [
chai/register-expect.js
test/setup/test-libs.ts
]
test/setup/test-libs.ts
import ...
shawnsparks
- 3
- Opened on Dec 12, 2024
- #1655
The primary docs site is replete with issues related to the use of Chai, specifically in terms of the differences
between Chai 4 and Chai 5.
For example, there are still plenty of places that read that ...
delfuego
- 1
- Opened on Nov 24, 2024
- #1654
Consider the following example:
import { test } from node:test ;
import { assert, expect } from chai ;
test( pass , () = {
expect([NaN]).to.deep.equal([NaN]);
expect({ a: NaN }).to.deep.equal({ ...
aradzie
- 3
- Opened on Nov 5, 2024
- #1653
I would expect these asserts to succeed:
assert.isNumber(1n);
AssertionError: expected 1n to be a number
assert.isAtMost(1n, 2n);
AssertionError: expected 1 to be a number or a date
karlb
- 3
- Opened on Oct 22, 2024
- #1652
Summary: I am requesting support for extending matchers in expect for specific types passed as arguments, with fallback
to matchers based on inheritance hierarchies. This ensures that custom objects and ...
dvegap95
- Opened on Oct 18, 2024
- #1651
Previously I often used code like
import chai from chai
chai.use(pluginA).use(pluginB)
Now it no longer works - I have to ho with
chai.use(pluginA)
chai.use(pluginB)
The type definitions suggest ...
AGrzes
- 5
- Opened on Oct 18, 2024
- #1650
I am using
chai : ^5.1.1 ,
chai-as-promised : ^8.0.0 ,
chai-http : ^5.1.1 ,
and the following code snippet
import chai from chai
import chaiHttp from chai-http
import chaiAsPromised ...
khteh
- 3
- Opened on Oct 16, 2024
- #1649

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.