pyright/packages/pyright-internal/jest.config.js
Eric Traut 86869f0c94
Added "literal math" support for exponentiation operator. This addres… (#8437)
* Added "literal math" support for exponentiation operator. This addresses #8434.

* Refactored binary ops "literal math" code for maintainability and readability.
2024-07-15 12:49:45 -07:00

27 lines
627 B
JavaScript

/*
* jest.config.js
*
* Configuration for jest tests.
*/
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src/tests'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
target: 'es2019',
// Needed because jest calls tsc in a way that doesn't
// inline const enums.
preserveConstEnums: false,
},
},
],
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
};