diff --git a/.eslintignore b/.eslintignore index 85e425de62..306cd2f570 100644 --- a/.eslintignore +++ b/.eslintignore @@ -13,3 +13,4 @@ src/webkit/protocol.ts /index.d.ts utils/generate_types/overrides.d.ts utils/generate_types/test/test.ts +test/ diff --git a/jest.config.js b/jest.config.js index 0c51d446aa..03ab34ab5e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,6 +8,18 @@ module.exports = /** @type {import('@jest/types').Config.InitialOptions} */ ({ testTimeout: 10000, globalSetup: './jest/setup.js', globalTeardown: './jest/teardown.js', + transform: { + '^.+\\.ts$': ['babel-jest', { + presets: [ + ['@babel/preset-env', { + targets: { + node: 'current' + } + }], + ['@babel/preset-typescript'] + ], + }], + }, reporters: [ 'default', './jest/reporter'