forked from newrelic/node-test-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (28 loc) · 742 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const assert = require('./lib/assert')
const TestAgent = require('./lib/agent')
const testUtil = require('./lib/util')
/**
* The `@newrelic/test-utilities` library.
*
* This library is meant to assist with testing instrumentation modules for New
* Relic's Node.js agent.
*
* @module test-utilities
*/
exports = module.exports = function extendTap(tap) {
assert.extendTap(tap)
return exports
}
// Export utility methods directly.
Object.assign(exports, testUtil)
/** @type TestAgent */
exports.TestAgent = TestAgent
/** @type util */
exports.util = testUtil
/** @type assert */
exports.assert = assert