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

cameri / nostream / 26300017967

22 May 2026 04:37PM UTC coverage: 36.478% (-28.6%) from 65.107%
26300017967

Pull #622

github

web-flow
Merge cbfcf131b into 36e5af87e
Pull Request #622: feat: add NIP-42 client authentication

791 of 3191 branches covered (24.79%)

Branch coverage included in aggregate %.

21 of 63 new or added lines in 6 files covered. (33.33%)

1585 existing lines in 77 files now uncovered.

2608 of 6127 relevant lines covered (42.57%)

17.63 hits per line

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

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

5
import { getProjectPath } from './paths'
1✔
6
import { runCommand } from './process'
1✔
7

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

14
export const resolveComposeFile = (filename: string): string => getProjectPath(filename)
1✔
15

16
export const buildComposeArgs = (files: string[], args: string[]): string[] => {
1✔
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

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

34
export const createPortOverrideComposeFile = (port: number): string => {
1✔
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