CLI: Add "features" question & auto-install test addon & improve test-addon compatibility #43493
Annotations
5 errors
test:
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
|
test:
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
|
test:
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
|
test:
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
|
test
Process completed with exit code 1.
|
Loading