Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ecd1f3b
fix: deprecated import of ApplicationConfig from '@angular/platform-b…
EtiennePasteur Nov 21, 2025
ae8201c
CLI: Fix passing flags for bun users during init
valentinpalkovic Nov 25, 2025
4bca101
Build: Resolve TelemetryService unit tests flake
yannbf Nov 25, 2025
a9ee9bc
Merge branch 'next' into valentin/fix-flag-passing-for-bun
yannbf Nov 25, 2025
a413b50
Merge pull request #33171 from storybookjs/yann/resolve-unit-tests-flake
valentinpalkovic Nov 25, 2025
b002df4
Merge branch 'next-release' into next
storybook-bot Nov 25, 2025
13d4773
Merge pull request #33166 from storybookjs/valentin/fix-flag-passing-…
valentinpalkovic Nov 25, 2025
a4690d5
Standardize info color to cyan for improved contrast on all platforms
valentinpalkovic Nov 26, 2025
fee87d4
Implement getPackageCommand method in package manager proxies for imp…
valentinpalkovic Nov 26, 2025
5bfc8a7
Refine recommended install type label for clarity and conciseness
valentinpalkovic Nov 26, 2025
41384c6
Refactor Playwright installation command handling for improved readab…
valentinpalkovic Nov 26, 2025
24f18cc
Simplify telemetry notification message for clarity and conciseness
valentinpalkovic Nov 26, 2025
698777d
Fix getPackageCommand for yarn
valentinpalkovic Nov 26, 2025
94ea6b3
Update upgrade message
yannbf Nov 26, 2025
6f4c32a
Merge pull request #33182 from storybookjs/yann/minor-message-update
yannbf Nov 26, 2025
f547a64
Fix tests
valentinpalkovic Nov 26, 2025
c942f73
Merge pull request #33180 from storybookjs/valentin/cli-improvements
valentinpalkovic Nov 26, 2025
f066655
Build: Fix angular prerelease sandbox generation
valentinpalkovic Nov 26, 2025
fdec800
Update code/lib/cli-storybook/src/sandbox-templates.ts
valentinpalkovic Nov 26, 2025
aa3ef6e
Merge pull request #33183 from storybookjs/valentin/fix-angular-prere…
valentinpalkovic Nov 26, 2025
ef6ccb0
Angular: Don't kill dev command by using observables
valentinpalkovic Nov 26, 2025
2972335
Merge pull request #33185 from storybookjs/valentin/fix-dev-of-storybook
valentinpalkovic Nov 26, 2025
3578ce7
Merge pull request #33125 from EtiennePasteur/fix-angular-deprecated-…
valentinpalkovic Nov 26, 2025
9af8208
Write changelog for 10.1.0-beta.6 [skip ci]
storybook-bot Nov 26, 2025
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
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
valentinpalkovic committed Nov 26, 2025
commit f547a648a8f2c03a911d1b1c7725ad5604e28b7c
7 changes: 6 additions & 1 deletion code/core/src/cli/AddonVitestService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('AddonVitestService', () => {
getAllDependencies: vi.fn(),
getInstalledVersion: vi.fn(),
runPackageCommand: vi.fn(),
getPackageCommand: vi.fn(),
} as Partial<JsPackageManager> as JsPackageManager;

service = new AddonVitestService(mockPackageManager);
Expand Down Expand Up @@ -366,6 +367,10 @@ describe('AddonVitestService', () => {
// Mock the logger methods used in installPlaywright
vi.mocked(logger.log).mockImplementation(() => {});
vi.mocked(logger.warn).mockImplementation(() => {});
// Mock getPackageCommand to return a string
vi.mocked(mockPackageManager.getPackageCommand).mockReturnValue(
'npx playwright install chromium --with-deps'
);
});

it('should install Playwright successfully', async () => {
Expand All @@ -381,7 +386,7 @@ describe('AddonVitestService', () => {
});
expect(prompt.executeTaskWithSpinner).toHaveBeenCalledWith(expect.any(Function), {
id: 'playwright-installation',
intro: 'Installing Playwright browser binaries (Press "c" to abort)',
intro: 'Installing Playwright browser binaries (press "c" to abort)',
error: expect.stringContaining('An error occurred'),
success: 'Playwright browser binaries installed successfully',
abortable: true,
Expand Down
Loading