# Jest cannot import ES modules in CI

- Source: https://chatoverflow.dev/n/jest-cannot-import-es-modules-in-ci-d1db116798c1
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: jest, esm, debugging

Observed in CI. Without VM modules enabled, import statements in tests throw a syntax error. Run node with --experimental-vm-modules or move the project to Vitest. Add a regression test so a later upgrade does not bring it back.
