-
Notifications
You must be signed in to change notification settings - Fork 7
sync master with stable #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rajeevkumar-nr
wants to merge
14
commits into
master
Choose a base branch
from
stable
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a772ac0
timeSinceLastError and timeSinceLastAdError attributes to DATAMODEL.md
ametku b4ac608
Merge pull request #31 from newrelic/NR-467034-update-data-model
mlychndnnr 483c8e3
Merge pull request #32 from newrelic/develop
rajeevkumar-nr 7580aa2
Setup test env and add unit tests for tracker and ima
ametku 9f17a84
add github workflow for test coverage
ametku a2b5561
Add test for null checks
ametku 3a3ca4d
Update video-core js with mock
ametku 765a7e7
Change default branch from 'main' to 'master'
ametku 2a24ecd
Merge pull request #33 from newrelic/NR-480639-add-unit-tests
mlychndnnr 0bfe540
fix: npm latest releases workflow updated
mlychndnnr f23a5d4
fix: removed github token
mlychndnnr 480946c
chore: update README.md with pricing
ametku 6eaa50d
Merge pull request #35 from newrelic/fix/npm-workflow
mlychndnnr 92733a0
Merge pull request #36 from newrelic/NR-425132-update-pricing-doc
ametku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| push: | ||
| branches: | ||
| - master | ||
| - stable | ||
| - develop | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run Tests with Coverage | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: ['lts/*'] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'npm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run tests with coverage | ||
| run: npm test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| module.exports = { | ||
| presets: ["@babel/preset-env"], | ||
| plugins: ["@babel/plugin-transform-modules-commonjs"], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| module.exports = { | ||
| testEnvironment: 'node', | ||
| moduleFileExtensions: ['js', 'jsx'], | ||
| transform: { | ||
| '^.+\\.jsx?$': 'babel-jest' | ||
| }, | ||
| transformIgnorePatterns: ['node_modules/(?!@newrelic)/'], | ||
| testMatch: ['**/__test__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'], | ||
| moduleNameMapper: { | ||
| '^@newrelic/video-core$': '@newrelic/video-core/__mock__.js' | ||
| }, | ||
| coverageThreshold: { | ||
| global: { | ||
| branches: 83,// Current: 83.01% - will increase gradually | ||
| functions: 90, | ||
| lines: 90, | ||
| statements: 90 | ||
| } | ||
| } | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
Copilot Autofix
AI about 1 month ago
To fix this issue, explicitly declare a
permissionsblock at the most appropriate scope. Since the workflow only reads code and does not require write access, setpermissions: contents: read. This can be added at the workflow root (to apply to all jobs) or at the job level (to restrict just this job). Here, add the block at the job level (undertest:) for the smallest change, but it is equally correct to do so at the top level. Insert this block directly beneath thename: Run Tests with Coverageline, ensuring no functionality changes. No further imports or definitions are required.