From 49b15d1970ed6bbb45c8943dde360392405d726f Mon Sep 17 00:00:00 2001 From: Stephen Belanger Date: Thu, 28 Dec 2023 22:32:43 +0800 Subject: [PATCH] Fix integration tests by pinned chai to v4 as v5 went ESM-only --- integration-tests/ci-visibility.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/ci-visibility.spec.js b/integration-tests/ci-visibility.spec.js index b9cf69c4c41..fa07ff4a29a 100644 --- a/integration-tests/ci-visibility.spec.js +++ b/integration-tests/ci-visibility.spec.js @@ -38,7 +38,7 @@ const mochaCommonOptions = { const jestCommonOptions = { name: 'jest', - dependencies: ['jest', 'chai', 'jest-jasmine2'], + dependencies: ['jest', 'chai@v4', 'jest-jasmine2'], expectedStdout: 'Test Suites: 2 passed', expectedCoverageFiles: [ 'ci-visibility/test/sum.js', @@ -51,7 +51,7 @@ const testFrameworks = [ { ...mochaCommonOptions, testFile: 'ci-visibility/run-mocha.js', - dependencies: ['mocha', 'chai', 'nyc'], + dependencies: ['mocha', 'chai@v4', 'nyc'], expectedCoverageFiles: [ 'ci-visibility/run-mocha.js', 'ci-visibility/test/sum.js', @@ -64,7 +64,7 @@ const testFrameworks = [ { ...mochaCommonOptions, testFile: 'ci-visibility/run-mocha.mjs', - dependencies: ['mocha', 'chai', 'nyc', '@istanbuljs/esm-loader-hook'], + dependencies: ['mocha', 'chai@v4', 'nyc', '@istanbuljs/esm-loader-hook'], expectedCoverageFiles: [ 'ci-visibility/run-mocha.mjs', 'ci-visibility/test/sum.js',