Skip to content

Test suite errors on NodeJS v18 and v20 #26

@jmcdl

Description

@jmcdl

I have been looking into this package and found that when attempting to run tests on NodeJS v18 and v20, I get the below error. NodeJS v16 works as expected. I imagine this error might actually be due to some changes that are required in the Siesta testing library, rather than chronograph?

libraries/chronograph (james*) % npm run test                                                                                                                                                                                                                                                                                                            21/10/24 9:18:10

> @bryntum/chronograph@1.0.3 test
> npx siesta ./tests

/Users/jamesmcdonell/code/libraries/chronograph/node_modules/siesta-lite/bin/projects/default_nodejs_project.js:3
let project     = module.exports = new Siesta.Project.NodeJS()
                                              ^

TypeError: Cannot read properties of undefined (reading 'Project')
    at Object.<anonymous> (/Users/jamesmcdonell/code/libraries/chronograph/node_modules/siesta-lite/bin/projects/default_nodejs_project.js:3:47)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
    at node:internal/main/run_main_module:23:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions