-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
I cannot make my unit tests work.
I get this error:
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
If I remove the lines of code that exploit dnum the tests work perfectly.
This is my jest.config.js:
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ["<rootDir>/src"],
testMatch: ['**/*.test.(ts|tsx)'],
};
Metadata
Metadata
Assignees
Labels
No labels