mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Remove tests from file which will be removed
This commit is contained in:
parent
dde3d9bfa4
commit
180318083c
@ -246,7 +246,7 @@ describe('new-frameworks fix', () => {
|
|||||||
it('should update correctly when there is no builder', async () => {
|
it('should update correctly when there is no builder', async () => {
|
||||||
const packageManager = getPackageManager({
|
const packageManager = getPackageManager({
|
||||||
'@storybook/vue3': '7.0.0',
|
'@storybook/vue3': '7.0.0',
|
||||||
'@storybook/builder-webpack5': '7.0.0',
|
'@storybook/builder-vite': '7.0.0',
|
||||||
});
|
});
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
@ -258,53 +258,9 @@ describe('new-frameworks fix', () => {
|
|||||||
})
|
})
|
||||||
).resolves.toEqual(
|
).resolves.toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
frameworkPackage: '@storybook/vue3-webpack5',
|
frameworkPackage: '@storybook/vue3-vite',
|
||||||
dependenciesToAdd: ['@storybook/vue3-webpack5'],
|
dependenciesToAdd: ['@storybook/vue3-vite'],
|
||||||
dependenciesToRemove: ['@storybook/builder-webpack5'],
|
dependenciesToRemove: ['@storybook/builder-vite'],
|
||||||
})
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should update when there is no framework field in main', async () => {
|
|
||||||
const packageManager = getPackageManager({
|
|
||||||
'@storybook/vue3': '7.0.0',
|
|
||||||
'@storybook/manager-webpack5': '7.0.0',
|
|
||||||
});
|
|
||||||
|
|
||||||
await expect(
|
|
||||||
checkNewFrameworks({
|
|
||||||
packageManager,
|
|
||||||
main: {},
|
|
||||||
})
|
|
||||||
).resolves.toEqual(
|
|
||||||
expect.objectContaining({
|
|
||||||
frameworkPackage: '@storybook/vue3-webpack5',
|
|
||||||
dependenciesToAdd: ['@storybook/vue3-webpack5'],
|
|
||||||
dependenciesToRemove: ['@storybook/manager-webpack5'],
|
|
||||||
hasFrameworkInMainConfig: false,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should update when the framework field has a legacy value', async () => {
|
|
||||||
const packageManager = getPackageManager({
|
|
||||||
'@storybook/vue3': '7.0.0',
|
|
||||||
'@storybook/manager-webpack5': '7.0.0',
|
|
||||||
});
|
|
||||||
|
|
||||||
await expect(
|
|
||||||
checkNewFrameworks({
|
|
||||||
packageManager,
|
|
||||||
main: {
|
|
||||||
framework: 'vue3',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
).resolves.toEqual(
|
|
||||||
expect.objectContaining({
|
|
||||||
frameworkPackage: '@storybook/vue3-webpack5',
|
|
||||||
dependenciesToAdd: ['@storybook/vue3-webpack5'],
|
|
||||||
dependenciesToRemove: ['@storybook/manager-webpack5'],
|
|
||||||
hasFrameworkInMainConfig: false,
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user