Socket
Socket
Sign inDemoInstall

@newrelic/test-utilities

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/test-utilities - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

32

lib/assert.js

@@ -15,2 +15,4 @@ /*

/* eslint sonarjs/cognitive-complexity: ["error", 30] -- TODO: https://issues.newrelic.com/browse/NEWRELIC-5252 */
/**

@@ -283,4 +285,3 @@ * @namespace assert

const firstGrandchildTest = expectedChild.children[0]
const grandchild = findFirstChild(matchChild.children, firstGrandchildTest.name)
return grandchild
return findFirstChild(matchChild.children, firstGrandchildTest.name)
})

@@ -419,17 +420,18 @@

const attrs = segment.segment.getAttributes()
const func = 'code.function'
const filepath = 'code.filepath'
const lineno = 'code.lineno'
const column = 'code.column'
if (clmEnabled) {
this.ok(attrs['code.function'], 'CLM segments should have code.function')
this.ok(attrs['code.filepath'], 'CLM segments should have code.filepath')
this.equal(attrs['code.function'], segment.name, 'should have appropriate code.function')
this.ok(
attrs['code.filepath'].endsWith(segment.filepath),
'should have appropriate code.filepath'
)
this.match(attrs['code.lineno'], /[\d]+/, 'lineno should be a number')
this.match(attrs['code.column'], /[\d]+/, 'column should be a number')
this.ok(attrs[func], 'CLM segments should have code.function')
this.ok(attrs[filepath], 'CLM segments should have code.filepath')
this.equal(attrs[func], segment.name, 'should have appropriate code.function')
this.ok(attrs[filepath].endsWith(segment.filepath), 'should have appropriate code.filepath')
this.match(attrs[lineno], /[\d]+/, 'lineno should be a number')
this.match(attrs[column], /[\d]+/, 'column should be a number')
} else {
this.notOk(attrs['code.function'], 'function should not exist')
this.notOk(attrs['code.filepath'], 'filepath should not exist')
this.notOk(attrs['code.lineno'], 'lineno should not exist')
this.notOk(attrs['code.column'], 'column should not exist')
this.notOk(attrs[func], 'function should not exist')
this.notOk(attrs[filepath], 'filepath should not exist')
this.notOk(attrs[lineno], 'lineno should not exist')
this.notOk(attrs[column], 'column should not exist')
}

@@ -436,0 +438,0 @@ })

@@ -35,2 +35,3 @@ /*

/* eslint sonarjs/cognitive-complexity: ["error", 32] -- TODO: https://issues.newrelic.com/browse/NEWRELIC-5252 */
/**

@@ -37,0 +38,0 @@ * Constructs a test matrix from the given test descriptor and package versions.

{
"name": "@newrelic/test-utilities",
"version": "7.3.1",
"version": "7.3.2",
"description": "Test library for New Relic instrumentation modules.",

@@ -35,6 +35,6 @@ "main": "index.js",

"devDependencies": {
"@newrelic/eslint-config": "^0.0.3",
"@newrelic/eslint-config": "^0.3.0",
"@newrelic/newrelic-oss-cli": "^0.1.2",
"c8": "^7.12.0",
"eslint": "^7.32.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.3.0",

@@ -49,3 +49,3 @@ "eslint-plugin-header": "^3.1.1",

"lockfile-lint": "^4.9.6",
"newrelic": "^9.7.3",
"newrelic": "^10.3.0",
"prettier": "^2.3.2",

@@ -63,4 +63,4 @@ "sinon": "^11.1.1",

"log-update": "^1.0.2",
"semver": "^5.5.0"
"semver": "^7.5.2"
}
}

@@ -209,3 +209,3 @@ <a href="https://opensource.newrelic.com/oss-category/#community-project"><picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Community_Project.png"><source media="(prefers-color-scheme: light)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Project.png"><img alt="New Relic Open Source community project banner." src="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Project.png"></picture></a>

* [New Relic Documentation](https://docs.newrelic.com/docs/agents/nodejs-agent): Comprehensive guidance for using our platform
* [New Relic Community](https://discuss.newrelic.com/tags/c/telemetry-data-platform/agents/nodeagent): The best place to engage in troubleshooting questions
* [New Relic Community](https://forum.newrelic.com/): The best place to engage in troubleshooting questions
* [New Relic Developer](https://developer.newrelic.com/): Resources for building a custom observability applications

@@ -212,0 +212,0 @@ * [New Relic University](https://learn.newrelic.com/): A range of online training for New Relic users of every level

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc