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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to `@red-hat-developer-hub/cli` are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.8 - 2026-09-15

### Fixed

- **`plugin new`:** Add the missing `jest-environment-jsdom` development dependency to generated projects so `yarn test` runs successfully.

## 2.0.7 - 2026-09-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@red-hat-developer-hub/cli",
"description": "CLI for developing Backstage plugins and apps",
"version": "2.0.7",
"version": "2.0.8",
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 3 additions & 0 deletions src/commands/new/__snapshots__/command.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ RHDH Dynamic Plugin Factory is the preferred workflow for repeatable build and p
"@backstage/cli": "0.36.5",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
}
}
Expand Down Expand Up @@ -200,6 +201,7 @@ RHDH Dynamic Plugin Factory is the preferred workflow for repeatable build and p
"@backstage/cli": "0.36.5",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
}
}
Expand Down Expand Up @@ -323,6 +325,7 @@ RHDH Dynamic Plugin Factory is the preferred workflow for repeatable build and p
"react-dom": "^18.0.0",
"react-router-dom": "^6.30.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/commands/new/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ describe('createPluginProject', () => {

const packageJson = await fs.readJson(path.join(output, 'package.json'));
expect(packageJson.devDependencies['@backstage/cli']).toBe('0.36.5');
expect(packageJson.devDependencies['jest-environment-jsdom']).toBe(
'^29.7.0',
);
expect(packageJson.devDependencies).not.toHaveProperty(
'@red-hat-developer-hub/cli',
);
Expand Down
1 change: 1 addition & 0 deletions templates/plugin-new/backend/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@backstage/cli": "{{versionQuery '@backstage/cli'}}",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@backstage/cli": "{{versionQuery '@backstage/cli'}}",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
}
}
1 change: 1 addition & 0 deletions templates/plugin-new/frontend/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"react-dom": "^18.0.0",
"react-router-dom": "^6.30.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.4.5"
},
"peerDependencies": {
Expand Down
Loading