Doesn't work in ESM projects
tgrushka opened this issue · 0 comments
tgrushka commented
Wanted to use this preset in a TypeScript ESM project (which is the format of almost all new projects these days) but since the config file is hard-coded to .js and doesn't allow .ts with ESM syntax or even .cjs, it fails with:
JestTestcontainersConfigError: Jest: Got error running globalSetup - /.../node_modules/@trendyol/jest-testcontainers/dist/setup.js, reason: config file could not be found at: /.../jest-testcontainers-config.js