chai
Script
v3
Fork
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @deno-types="https://unpkg.com/@types/chai/index.d.ts"
import
"https://chaijs.com/chai.js"
;
// found @ https://github.com/denoland/deno_std/issues/1284#issuecomment-932611198
const
{
assert
,
Assertion
,
AssertionError
,
config
,
expect
,
use
,
util
,
version
,
// @ts-expect-error the types above declare it as a global
// and importing the javascript file this way works
}
=
chai
;
// by reexporting everythin (beside `should` since it doesn't work with ESM) types work in other vals
export
{
assert
,
Assertion
,
AssertionError
,
config
,
expect
,
use
,
util
,
version
}
;