Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed May 22, 2023
1 parent 3631ffb commit efcba13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/lib/cli/src/automigrate/fixes/add-react.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import type { StorybookConfig } from '@storybook/types';
import type { JsPackageManager, PackageJson } from '../../js-package-manager';
import { addReact } from './add-react';

const checkAddReact = async (packageJson: PackageJson) => {
const packageManager = {
retrievePackageJson: async () => ({ dependencies: {}, devDependencies: {}, ...packageJson }),
} as JsPackageManager;
return addReact.check({ packageManager });

return addReact.check({
packageManager,
mainConfig: {} as StorybookConfig,
storybookVersion: '7.0.0',
});
};

describe('addReact fix', () => {
Expand Down
2 changes: 2 additions & 0 deletions code/lib/cli/src/automigrate/fixes/eslint-plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const checkEslint = async ({
});
return eslintPlugin.check({
packageManager: makePackageManager(packageJson),
mainConfig: {} as any,
storybookVersion: '7.0.0',
});
};

Expand Down

0 comments on commit efcba13

Please sign in to comment.