Get error message in executing the course "app-nodejs/test"

I execute the course “neo4j graphacademy app-nodejs”. When I try to run the required tests, I get the message in the terminal:

test/challenges/02-movie-lists.spec.js

● Test suite failed to run

ES Modules are only supported if your test environment has the `getVmContext` function

  at invariant (node_modules/jest-runtime/build/index.js:1855:11)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        2.114s

What is going wrong?

Hi, @karlheinz_leder!

Are you running the test via the "test" script, as in npm run test?

If you are running jest directly in the CLI, you need to provide the --experimental-vm-modules when running jest.