mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-06 12:57:14 +03:00
86869f0c94
* Added "literal math" support for exponentiation operator. This addresses #8434. * Refactored binary ops "literal math" code for maintainability and readability.
27 lines
627 B
JavaScript
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'],
|
|
};
|