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

cameri / nostream / 25600147486

09 May 2026 11:35AM UTC coverage: 34.005% (-31.1%) from 65.118%
25600147486

Pull #615

github

web-flow
Merge 7dc8a4461 into f9f6d647a
Pull Request #615: test: add unit tests for remaining app workers (#489)

788 of 3168 branches covered (24.87%)

Branch coverage included in aggregate %.

0 of 4 new or added lines in 2 files covered. (0.0%)

1822 existing lines in 87 files now uncovered.

2352 of 6066 relevant lines covered (38.77%)

20.36 hits per line

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

0.0
/src/cli/utils/docker.ts
UNCOV
1
import fs from 'fs'
×
UNCOV
2
import os from 'os'
×
UNCOV
3
import { join } from 'path'
×
4

UNCOV
5
import { getProjectPath } from './paths'
×
UNCOV
6
import { runCommand } from './process'
×
7

8
export type ComposeOptions = {
9
  files: string[]
10
  args: string[]
11
  env?: NodeJS.ProcessEnv
12
}
13

UNCOV
14
export const resolveComposeFile = (filename: string): string => getProjectPath(filename)
×
15

UNCOV
16
export const buildComposeArgs = (files: string[], args: string[]): string[] => {
×
UNCOV
17
  const out: string[] = []
×
18

UNCOV
19
  for (const file of files) {
×
UNCOV
20
    const fullPath = resolveComposeFile(file)
×
UNCOV
21
    if (fs.existsSync(fullPath)) {
×
UNCOV
22
      out.push('-f', fullPath)
×
23
    }
24
  }
25

UNCOV
26
  return [...out, ...args]
×
27
}
28

UNCOV
29
export const runDockerCompose = async ({ files, args, env }: ComposeOptions): Promise<number> => {
×
30
  const composeArgs = buildComposeArgs(files, args)
×
31
  return runCommand('docker', ['compose', ...composeArgs], { env })
×
32
}
33

UNCOV
34
export const createPortOverrideComposeFile = (port: number): string => {
×
UNCOV
35
  const tempFile = join(os.tmpdir(), `nostream-port-override-${process.pid}-${Date.now()}.yml`)
×
UNCOV
36
  const content = [
×
37
    'services:',
38
    '  nostream:',
39
    '    environment:',
40
    `      RELAY_PORT: ${port}`,
41
    '    ports:',
42
    `      - 127.0.0.1:${port}:${port}`,
43
  ].join('\n')
44

UNCOV
45
  fs.writeFileSync(tempFile, content, { encoding: 'utf-8' })
×
UNCOV
46
  return tempFile
×
47
}
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