Skip to content

chore(utils): Cleanup dependencies and fix cockatiel API#2763

Closed
praveenkatha-nr wants to merge 1 commit intoreleasefrom
chore/cleanup-types-and-lockfile
Closed

chore(utils): Cleanup dependencies and fix cockatiel API#2763
praveenkatha-nr wants to merge 1 commit intoreleasefrom
chore/cleanup-types-and-lockfile

Conversation

@praveenkatha-nr
Copy link
Collaborator

  • Remove package-lock.json to fix mixed package manager warning
  • Remove unnecessary @types packages (glob, node-fetch, uuid, lodash, prompt-sync)
  • Update cockatiel retry API to match v3.x breaking changes
  • Add .nvmrc specifying Node.js 22

Summary

A concise description of the changes being introduced. Please review the pre-merge checklist section to validate this pull request is ready for review and merge. If it is not ready, please mark the pull request as a draft.

The owners of this repo are not experts in the subject matter of the quickstarts. We review for the quickstart to be functional and for security risks. If you are seeking feedback on the content of the quickstart, please seek out a subject matter expert. If you are not an internal NR contributor, we can do our best to connect you with a content reviewer.

Pre merge checklist

  • Did you check you NRQL syntax? - Does it work?
  • Did you include a Data source and Documentation reference?
  • Are all documentation links publicly accessible?
  • Did you check your descriptive content for voice and tone?
  • Did you check your descriptive content for spelling and grammar errors?
  • Did you review your content with a subject matter expert? (e.g. a Browser agent quickstart is reviewed with a member of the Browser Agent team)

Dashboards

  • Does the PR contain a screenshot for each of your dashboards?
  • Do your screenshots show data?
  • Has the sanitization script been run on each dashboard?

Alerts

  • Did you check that your alerts actually work?
  • Are you trying to create standalone alerts? Standalone alerts are deprecated. They should only be included in quickstarts.

@praveenkatha-nr praveenkatha-nr force-pushed the chore/cleanup-types-and-lockfile branch 2 times, most recently from 5bf107c to 3390184 Compare January 20, 2026 10:57
- Remove package-lock.json to fix mixed package manager warning
- Remove unnecessary @types packages (glob, node-fetch, uuid, lodash, prompt-sync)
- Add @types/lodash.get for the lodash.get package
- Update cockatiel retry API to match v3.x breaking changes
- Fix TypeScript unknown type errors in nr-graphql-helpers.ts and github-api-helpers.ts
- Fix lodash/get import to use lodash.get package
- Fix Jest 30 API changes (toBeCalled -> toHaveBeenCalled)
- Add jest.setup.js to mock node-fetch and @actions/core for Node.js 22 compatibility
- Sort glob results in Alert.ts for consistent test ordering
- Fix fs mock in validate_images.test.js to include realpathSync.native for path-scurry
- Add .nvmrc specifying Node.js 22

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@praveenkatha-nr praveenkatha-nr force-pushed the chore/cleanup-types-and-lockfile branch from 3390184 to 03d44b4 Compare January 20, 2026 11:02
praveenkatha-nr added a commit that referenced this pull request Jan 27, 2026
- Add jest.setup.js with @actions/core mock for test isolation
- Add setupFiles config to jest.config.js
- Fix cockatiel retry API order (.exponential().attempts() instead of .attempts().exponential())
- Fix github-api-helpers.ts response handling (check resp.ok before parsing JSON)
- Add .sort() to glob results in Alert.ts for deterministic ordering
- Update Jest assertions for v29 compatibility:
  - toBeCalled -> toHaveBeenCalled
  - toBeCalledTimes -> toHaveBeenCalledTimes
- Update fs mock in validate_images.test.js to use jest.requireActual

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments