Skip to content

Commit 41a7811

Browse files
committed
Missing js at the end of the import
1 parent 186fd2f commit 41a7811

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/matchers/element/toHaveAttribute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
waitUntil,
99
wrapExpectedWithArray
1010
} from '../../utils.js'
11-
import { isStringOptions } from '../../util/commandOptionsUtils'
11+
import { isStringOptions } from '../../util/commandOptionsUtils.js'
1212

1313
async function conditionAttributeIsPresent(el: WebdriverIO.Element, attribute: string) {
1414
const attributeValue = await el.getAttribute(attribute)

tsconfig.build.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"module": "nodenext", // Required to ensure that imports use the file extension
45
"outDir": "./lib/",
56
"rootDir": "./src",
67
"tsBuildInfoFile": "./lib/tsconfig.build.tsbuildinfo",
8+
"moduleResolution": "nodenext" // Required to ensure that imports use the file extension
79
},
810
"include": [
911
"./src/**/*.ts"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"skipLibCheck": true,
1717
"strictPropertyInitialization": true,
1818
"strictNullChecks": true,
19-
"moduleResolution": "bundler",
19+
"moduleResolution": "bundler", // For test file we can user bundler and so omit the file extension in import statements.
2020
"allowSyntheticDefaultImports": true,
2121
"types": [
2222
"node",

0 commit comments

Comments
 (0)