Skip to content

Testcafe doesn't work with node 18.0 #7000

@mecciau

Description

@mecciau

What is your Scenario?

Fresh install of testcafe 1.18.6
trying to run a simple test with npx testcafe

fixture`Getting Started`.page`https://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
    console.log('all good')
});

What is the Current behavior?

% npx testcafe 

ERROR TypeError: details.family.toLowerCase is not a function
    at /Users/dominykasverkauskas/src/hello/node_modules/ip/lib/ip.js:385:39
    at Array.filter (<anonymous>)
    at /Users/dominykasverkauskas/src/hello/node_modules/ip/lib/ip.js:384:37
    at Array.map (<anonymous>)
    at ip.address (/Users/dominykasverkauskas/src/hello/node_modules/ip/lib/ip.js:379:37)
    at Proxy.getIPAddress (/Users/dominykasverkauskas/Shopify/hello/node_modules/endpoint-utils/index.js:109:15)
    at getValidHostname (/Users/dominykasverkauskas/hello/node_modules/testcafe/lib/index.js:26:34)
    at Object.createTestCafe [as default] (/Users/dominykasverkauskas/src/github.com/node_modules/testcafe/lib/index.js:71:9)
    at async runTests (/Users/dominykasverkauskas/src/hello/node_modules/testcafe/lib/cli/cli.js:63:22)
    at async cli (/Users/dominykasverkauskas/src/hello/node_modules/testcafe/lib/cli/cli.js:136:13)

Type "testcafe -h" for help.

What is the Expected behavior?

To start running the test

What is your public website URL? (or attach your complete example)

https://devexpress.github.io/testcafe/example

What is your TestCafe test code?

spec file:

fixture`Getting Started`.page`https://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
    console.log('all good')
});

Your complete configuration file

module.exports = {
    browsers: 'chrome',
    src: "./tests"
}

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. use node 18.0.0
  2. fresh install testcafe
  3. run any test

TestCafe version

1.18.6

Node.js version

18.0.0

Command-line arguments

testcafe chrome -e test.js

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: bugThe described behavior is considered as wrong (bug).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions