Skip to content

Test: Freeze npm metadata snapshot dates - #62

Merged
orta merged 1 commit into
orta:mainfrom
glensc:fix-ci
May 16, 2026
Merged

Test: Freeze npm metadata snapshot dates#62
orta merged 1 commit into
orta:mainfrom
glensc:fix-ci

Conversation

@glensc

@glensc glensc commented May 4, 2026

Copy link
Copy Markdown
Contributor

Extracted from #60

Addresses #7

Refs

@glensc

glensc commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

Tests pass now

$ jest
 PASS  src/index.test.ts
  checkForRelease
    ✓ Says congrats if there is a package diff version change (1ms)
    ✓ Says nothing if there is a no difference in version (1ms)
    ✓ Says nothing if there is a backslip in version
    ✓ does nothing when there's no version change
  checkForTypesInDeps
    ✓ does nothing when there's no dependency changes
    ✓ when there is an @types dependency, it should call fail
  checkForLockfileDiff
    ✓ does nothing when there's no dependency changes
    ✓ when there are dependency changes, and no lockfile in modified - warn
    ✓ when there are dependency changes, and a lockfile in modified - do not warn (1ms)
    ✓ detects changes from multiple package.json files (476ms)
  npm metadata
    ✓ Shows a bunch of useful text for a new dep (1ms)
  Feature Flags
    ✓ should skip checkForRelease if options.disableCheckForRelease is provided
    ✓ should skip checkForLockFileDiff if options.disableCheckForLockfileDiff is provided
    ✓ should skip checkForTypesInDeps if options.disableCheckForTypesInDeps is provided (192ms)
    ✓ should skip checkForNewDependencies if options.disableCheckForNewDependencies is provided (1ms)

Test Suites: 1 passed, 1 total
Tests:       15 passed, 15 total
Snapshots:   3 passed, 3 total
Time:        1.229s
Ran all test suites.
✨  Done in 2.16s.

@glensc

glensc commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

@orta, do you need anything else to get this merged?

@glensc

glensc commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

@orta ping?

@orta

orta commented May 16, 2026

Copy link
Copy Markdown
Owner

Looks good

@orta
orta merged commit 8dfcdcc into orta:main May 16, 2026
@glensc
glensc deleted the fix-ci branch May 19, 2026 22:25
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.

2 participants