Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/unit/release-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ describe('release-please configuration', () => {
expect(config['bump-minor-pre-major']).toBe(true)
})

it('starts from 0.1.0 and agrees with package.json', () => {
it('tracks one SemVer version that package.json agrees with', () => {
const manifest = read('.release-please-manifest.json')
const pkg = read('package.json')

expect(manifest['.']).toBe('0.1.0')
// release-please moves this on every release, so the test checks the
// shape and that the two files agree, never a specific number.
expect(manifest['.']).toMatch(/^\d+\.\d+\.\d+$/)
expect(pkg.version).toBe(manifest['.'])
})
})
Loading