• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

electrode-io / electrode-native / 7581

24 Apr 2026 09:20AM UTC coverage: 56.608% (-11.2%) from 67.856%
7581

push

Azure Pipelines

web-flow
Merge pull request #1924 from electrode-io/npm-security-audit-fix

3600 of 7762 branches covered (46.38%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

1659 existing lines in 112 files now uncovered.

9425 of 15247 relevant lines covered (61.82%)

523.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

14.29
/ern-container-gen/src/reactNativeBundleAndroid.ts
1
import { BundlingResult, reactnative, shell } from 'ern-core';
3✔
2
import fs from 'fs';
3✔
3
import path from 'path';
3✔
4

5
export async function reactNativeBundleAndroid({
3✔
6
  bundleOutput,
7
  dev,
8
  outDir,
9
  sourceMapOutput,
10
  cwd,
11
  resetCache,
12
}: {
13
  bundleOutput?: string;
14
  dev?: boolean;
15
  outDir: string;
16
  sourceMapOutput?: string;
17
  cwd?: string;
18
  resetCache?: boolean;
19
}): Promise<BundlingResult> {
UNCOV
20
  cwd = cwd ?? process.cwd();
×
UNCOV
21
  const libSrcMainPath = path.join(outDir, 'lib', 'src', 'main');
×
UNCOV
22
  bundleOutput =
×
23
    bundleOutput ?? path.join(libSrcMainPath, 'assets', 'index.android.bundle');
×
UNCOV
24
  const assetsDest = path.join(libSrcMainPath, 'res', 'bundle');
×
25

26
  // Cleanup everything from 'res' bundle directory
UNCOV
27
  if (fs.existsSync(assetsDest)) {
×
UNCOV
28
    shell.rm('-rf', assetsDest);
×
29
  }
30

UNCOV
31
  shell.pushd(cwd);
×
32

UNCOV
33
  const entryFile = fs.existsSync(path.join(cwd, 'index.android.js'))
×
34
    ? 'index.android.js'
×
35
    : 'index.js';
36

UNCOV
37
  try {
×
UNCOV
38
    const result = await reactnative.bundle({
×
39
      assetsDest,
40
      bundleOutput,
41
      dev: !!dev,
42
      entryFile,
43
      platform: 'android',
44
      resetCache,
45
      sourceMapOutput,
46
      workingDir: cwd,
47
    });
UNCOV
48
    return result;
×
49
  } finally {
UNCOV
50
    shell.popd();
×
51
  }
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc