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

ekino / veggies / 19507108200

19 Nov 2025 03:39PM UTC coverage: 57.528% (+4.9%) from 52.654%
19507108200

Pull #99

github

web-flow
Merge 091c31753 into 79c5b8334
Pull Request #99: Disable axios proxy

418 of 670 branches covered (62.39%)

Branch coverage included in aggregate %.

5 of 12 new or added lines in 3 files covered. (41.67%)

1 existing line in 1 file now uncovered.

522 of 964 relevant lines covered (54.15%)

42.91 hits per line

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

0.0
/src/extensions/http_api/index.ts
1
import * as definitions from './definitions.js'
2
import baseExtendWorld from './extend_world.js'
3

NEW
4
let proxyConfig = false
×
5

6
/**
7
 * Extends cucumber world object.
8
 * Must be used inside customWorldConstructor.
9
 *
10
 * @example
11
 * // /support/world.js
12
 *
13
 * const { setWorldConstructor } = require('@cucumber/cucumber')
14
 * const { state, httpApi } = require('@ekino/veggies')
15
 *
16
 * setWorldConstructor(function() {
17
 *     state.extendWorld(this) // httpApi extension requires state extension
18
 *     httpApi.extendWorld(this)
19
 * })
20
 */
NEW
21
export const extendWorld = (world: Parameters<typeof baseExtendWorld>[0]): void => {
×
NEW
22
    baseExtendWorld(world, proxyConfig)
×
23
}
24

25
/**
26
 * Installs the extension.
27
 *
28
 * @example
29
 * // /support/world.js
30
 *
31
 * const { setWorldConstructor } = require('@cucumber/cucumber')
32
 * const { state, httpApi } = require('@ekino/veggies')
33
 *
34
 * setWorldConstructor(function() {
35
 *     state.extendWorld(this) // httpApi extension requires state extension
36
 *     httpApi.extendWorld(this)
37
 * })
38
 *
39
 * state.install()
40
 * httpApi.install({ baseUrl: 'http://localhost:3000' })
41
 */
NEW
42
export const install = ({ baseUrl = '', proxy = false } = {}): void => {
×
NEW
43
    proxyConfig = proxy
×
UNCOV
44
    definitions.install({ baseUrl })
×
45
}
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