-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@shelf/jest-mongodb does not work with TypeScript #191
Comments
We use it with a Typescript setup, our
// EDIT: But as you see, we're not using |
Actually I copy pasted the stuff about babel from another project, this is a node project strictly so there is no need to use babel-jest. I replaced the configuration with this: const { defaults: tsjPreset } = require('ts-jest/presets')
module.exports = {
transform: tsjPreset.transform,
rootDir: './lib',
roots: ['<rootDir>'],
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
preset: "@shelf/jest-mongodb"
}; but still does not work. Keeps on saying "Determining test suites to run..." |
Never mind, it was just the Docker image |
@francesco-albanese You left this issue open. Sounds like you should be able to close it. |
I was having same error on Ubuntu 22, i just tried with a different OS like windows and it worked. |
Probably related: #351 |
Here the config I am using for jest in
jest.config.js
:Jest fails to run tests just saying "Determining test suites to run..."
Works if I replace
preset: "@shelf/jest-mongodb"
withpreset: "ts-jest"
The text was updated successfully, but these errors were encountered: