Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Commit 530d93f

Browse files
committed
test: custom babel config for e2e tests
1 parent d0d3886 commit 530d93f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

e2e/babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
'@babel/preset-typescript',
5+
],
6+
};

e2e/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ module.exports = {
88
globalSetup: 'detox/runners/jest/globalSetup',
99
globalTeardown: 'detox/runners/jest/globalTeardown',
1010
testEnvironment: 'detox/runners/jest/testEnvironment',
11+
transform: {
12+
'\\.[jt]sx?$': ['babel-jest', { configFile: './e2e/babel.config.js' }],
13+
},
1114
};

0 commit comments

Comments
 (0)