mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
support typescript in jest files (#3132)
This commit is contained in:
parent
6a4195fd1d
commit
0a57c2b39e
@ -13,3 +13,4 @@ src/webkit/protocol.ts
|
||||
/index.d.ts
|
||||
utils/generate_types/overrides.d.ts
|
||||
utils/generate_types/test/test.ts
|
||||
test/
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user