Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/test/fixtures/uuid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uuid",
"publisher": "joaomoreno",
"version": "1.0.0",
"version": "100.0.0",
"engines": { "vscode": "*" }
}
12 changes: 6 additions & 6 deletions src/test/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ describe('ManifestProcessor', () => {
const root = fixture('uuid');

let manifest = JSON.parse(await fs.promises.readFile(path.join(root, 'package.json'), 'utf8'));
assert.deepStrictEqual(manifest.version, '1.0.0');
assert.deepStrictEqual(manifest.version, '100.0.0');

const processor = new ManifestProcessor(manifest, { version: '1.1.1', updatePackageJson: false });
const packageJson = {
Expand All @@ -2441,14 +2441,14 @@ describe('ManifestProcessor', () => {
assert.deepStrictEqual(processor.vsix.version, '1.1.1');

manifest = JSON.parse(await fs.promises.readFile(path.join(root, 'package.json'), 'utf8'));
assert.deepStrictEqual(manifest.version, '1.0.0');
assert.deepStrictEqual(manifest.version, '100.0.0');
});

it('should not bump package.json version in-memory when not using --no-update-package-json', async () => {
const root = fixture('uuid');

let manifest = JSON.parse(await fs.promises.readFile(path.join(root, 'package.json'), 'utf8'));
assert.deepStrictEqual(manifest.version, '1.0.0');
assert.deepStrictEqual(manifest.version, '100.0.0');

const processor = new ManifestProcessor(manifest, { version: '1.1.1' });
const packageJson = {
Expand All @@ -2457,11 +2457,11 @@ describe('ManifestProcessor', () => {
};

manifest = JSON.parse(await read(await processor.onFile(packageJson)));
assert.deepStrictEqual(manifest.version, '1.0.0');
assert.deepStrictEqual(processor.vsix.version, '1.0.0');
assert.deepStrictEqual(manifest.version, '100.0.0');
assert.deepStrictEqual(processor.vsix.version, '100.0.0');

manifest = JSON.parse(await fs.promises.readFile(path.join(root, 'package.json'), 'utf8'));
assert.deepStrictEqual(manifest.version, '1.0.0');
assert.deepStrictEqual(manifest.version, '100.0.0');
});

it('should not throw error for engine version with x (e.g. 1.95.x)', async () => {
Expand Down
Loading