Skip to content

Commit dabb47c

Browse files
authored
Fix chai 6.x compatibility - replace default imports with namespace imports (#5314)
1 parent 3d8d023 commit dabb47c

40 files changed

+40
-40
lines changed

test/helper/Appium_ios_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import path from 'path'
33
import { fileURLToPath } from 'url'
44
import { dirname } from 'path'

test/helper/Appium_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import path from 'path'
33
import { fileURLToPath } from 'url'
44
import { dirname } from 'path'

test/helper/CustomLocator_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import Playwright from '../../lib/helper/Playwright.js'
33
import Locator from '../../lib/locator.js'
44

test/helper/JSONResponse_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import { z } from 'zod'
33
import { JSONResponse } from '../../lib/helper/JSONResponse.js'
44
import Container from '../../lib/container.js'

test/helper/Playwright_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22

33
const assert = chai.assert
44
const expect = chai.expect

test/helper/Puppeteer_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import path from 'path'
33
import { fileURLToPath } from 'url'
44
import { dirname } from 'path'

test/helper/WebDriver.noSeleniumServer_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import path from 'path'
33
import fs from 'fs'
44
import { fileURLToPath } from 'url'

test/helper/WebDriver_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import path from 'path'
33
import fs from 'fs'
44
import { fileURLToPath } from 'url'

test/helper/webapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
import storeModule from '../../lib/store.js'
33
const store = storeModule.default || storeModule
44
const expect = chai.expect

test/runner/bdd_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai'
1+
import * as chai from 'chai'
22
chai.should()
33
import assert from 'assert'
44
import path from 'path'

0 commit comments

Comments
 (0)