Remove dev dep imports in production code (#2937)
Fixes #2876 with @paulmelnikow's suggestion Moved imports of `ServiceTester` and `createServiceTester` to a separate file so that dev dependencies are not imported by service classes.
This commit is contained in:
committed by
Paul Melnikow
parent
cdeba2fdf9
commit
855c9cd261
@@ -113,7 +113,7 @@ const isCompactCustomAzureDevOpsTestTotals = isAzureDevOpsTestTotals(
|
||||
true
|
||||
)
|
||||
|
||||
const t = (module.exports = require('..').createServiceTester())
|
||||
const t = (module.exports = require('../tester').createServiceTester())
|
||||
|
||||
t.create('unknown build definition')
|
||||
.get(`${uriPrefix}/${nonExistentDefinitionId}.json`)
|
||||
|
||||
Reference in New Issue
Block a user