Open HKappertAgrovision opened 1 year ago
Any update ? I am also facing the same issue in my app.
I found a way to fix it, add this to your jest.config.js
transformIgnorePatterns: ['node_modules/(?!dayjs|.*\\.mjs$)'],
More information about the issue: https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
i have tried it. but i can't get it to work. i have included my jest.config.js. am i doing it correct? ;-)
`const { pathsToModuleNameMapper } = require('ts-jest'); const { paths } = require('../../tsconfig.json').compilerOptions;
module.exports = {
preset: 'jest-preset-angular',
moduleNameMapper: { ...pathsToModuleNameMapper(paths, { prefix: '
Any updates on this? I am running into the same issue
I added my solution here: https://github.com/fetrarij/ngx-daterangepicker-material/issues/479
Versions
Describe the bug Everything was running until we updated the project to angular 14. When i run the tests i get this error returned
`Jest encountered an unexpected token
Additional context We get this error in the main project. the PIG-Angular-Shared is a package we use in different projects. We also have tests in the PIG-Angular-Shared project, but there is no problem to run those tests. We have tried around 20 different things (change jest.config, tsconfig or different version of dateRangePicker) to get this fixed, but nothing seems to work.