Skip to content

Commit 7bf2df0

Browse files
committed
Fix buildTestBundle of E2E tests
1 parent 32cf23a commit 7bf2df0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

__e2e__/buildTestBundle.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
import path from 'path';
12
import webpack from 'webpack';
23

3-
export const bundlePath = '__e2e__/fixture/app.bundle.js';
4+
const outputPath = '__e2e__/fixture';
5+
const filename = 'app.bundle.js';
6+
7+
export const bundlePath = path.join(outputPath, filename);
48

59
// Build a bundle for simulate RNDebugger worker run react-native bundle,
610
// it included redux, mobx, remotedev tests
711
export default function buildTestBundle() {
812
return new Promise(resolve =>
913
webpack({
14+
mode: 'development',
1015
entry: './__e2e__/fixture/app',
1116
output: {
12-
filename: `./${bundlePath}`,
17+
path: path.resolve(__dirname, '..', outputPath),
18+
filename,
1319
},
1420
resolve: {
1521
mainFields: ['main', 'browser'],

0 commit comments

Comments
 (0)