a pre-release version (0.0.0-rehearsal.1) passes the one-version test; release.ts puts the checkout back when the fast gate fails before anything is committed
This commit is contained in:
parent
cd1e13c1e2
commit
ef81dd1b3e
2 changed files with 8 additions and 3 deletions
|
|
@ -4,12 +4,12 @@ import { cpSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'nod
|
|||
import { tmpdir } from 'node:os';
|
||||
import { join } from 'node:path';
|
||||
import { artifactName, developerIdIdentity, mergeManifest, pathFreeEnv, releaseUrl, remoteSessionReason, sliceProblems, sumsText, uploadable, archProblems, commitProblems, releaseTogetherProblems, forgejoMacFiles } from '../tools/desktop-release';
|
||||
import { COPIES, setVersion, versions } from '../tools/desktop-version';
|
||||
import { COPIES, SEMVER, setVersion, versions } from '../tools/desktop-version';
|
||||
|
||||
describe('desktop version authority', () => {
|
||||
test('the repository has one version: the CLI, the plugin manifests and the desktop app', () => {
|
||||
const { version, drift } = versions();
|
||||
expect(version).toMatch(/^\d+\.\d+\.\d+$/);
|
||||
expect(version).toMatch(SEMVER); // x.y.z, or a pre-release such as 0.0.0-rehearsal.1 (tools/release.ts --rehearsal)
|
||||
expect(drift).toEqual([]);
|
||||
const pkg = JSON.parse(readFileSync(join(import.meta.dir, '../package.json'), 'utf8'));
|
||||
expect(version).toBe(pkg.version);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue