From 6e0ff5b8272eb3d6f0049087a0491046a29d3a5c Mon Sep 17 00:00:00 2001 From: r0qs Date: Tue, 9 Jan 2024 15:30:01 -0300 Subject: [PATCH] Fix chai to version 4.4.0 in Brink external test --- test/externalTests/brink.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/externalTests/brink.sh b/test/externalTests/brink.sh index 44ea1a511ac6..1c3ad2e19a13 100755 --- a/test/externalTests/brink.sh +++ b/test/externalTests/brink.sh @@ -73,7 +73,9 @@ function brink_test yarn add hardhat-gas-reporter # TODO: Remove when https://github.com/brinktrade/brink-core/issues/48 is fixed. - yarn add chai + # TODO: Chai is ESM-only since version 5.x (see: https://github.com/chaijs/chai/issues/1561#issuecomment-1871134261), + # thus, we should stick to version 4.x until Brink and other dependencies also migrate to ESM. + yarn add chai@4.4.0 replace_version_pragmas