Skip to content

CLI: Add "intents" question & auto-install test addon & improve test-addon compatibility #43496

CLI: Add "intents" question & auto-install test addon & improve test-addon compatibility

CLI: Add "intents" question & auto-install test addon & improve test-addon compatibility #43496

Triggered via pull request February 5, 2025 13:40
Status Failure
Total duration 12m 51s
Artifacts

tests-unit.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/updateVitestFile.test.ts > updateConfigFile > updates vite config file: code/addons/test/src/updateVitestFile.test.ts#L35
Error: Snapshot `updateConfigFile > updates vite config file 1` mismatched - Expected + Received @@ -12,10 +12,11 @@ export default defineConfig({ plugins: [react()], test: { globals: true, workspace: ['packages/*', { + extends: true, plugins: [ // The plugin will run tests for the stories defined in your Storybook config // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest storybookTest({ configDir: path.join(dirname, '.storybook') ❯ src/updateVitestFile.test.ts:35:18
src/updateVitestFile.test.ts > updateConfigFile > supports object notation without defineConfig: code/addons/test/src/updateVitestFile.test.ts#L97
Error: Snapshot `updateConfigFile > supports object notation without defineConfig 1` mismatched - Expected + Received @@ -12,10 +12,11 @@ export default { plugins: [react()], test: { globals: true, workspace: ['packages/*', { + extends: true, plugins: [ // The plugin will run tests for the stories defined in your Storybook config // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest storybookTest({ configDir: path.join(dirname, '.storybook') ❯ src/updateVitestFile.test.ts:97:18
src/updateVitestFile.test.ts > updateConfigFile > adds workspace property to test config: code/addons/test/src/updateVitestFile.test.ts#L185
Error: Snapshot `updateConfigFile > adds workspace property to test config 1` mismatched - Expected + Received @@ -12,10 +12,11 @@ export default defineConfig({ plugins: [react()], test: { globals: true, workspace: [{ + extends: true, plugins: [ // The plugin will run tests for the stories defined in your Storybook config // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest storybookTest({ configDir: path.join(dirname, '.storybook') ❯ src/updateVitestFile.test.ts:185:18
src/updateVitestFile.test.ts > updateConfigFile > adds test property to vite config: code/addons/test/src/updateVitestFile.test.ts#L244
Error: Snapshot `updateConfigFile > adds test property to vite config 1` mismatched - Expected + Received @@ -11,10 +11,11 @@ // More info at: https://storybook.js.org/docs/writing-tests/test-addon export default defineConfig({ plugins: [react()], test: { workspace: [{ + extends: true, plugins: [ // The plugin will run tests for the stories defined in your Storybook config // See options at: https://storybook.js.org/docs/writing-tests/test-addon#storybooktest storybookTest({ configDir: path.join(dirname, '.storybook') ❯ src/updateVitestFile.test.ts:244:18
Core Unit Tests, windows-latest
Process completed with exit code 1.