diff --git a/e2e/storybook-angular/src/storybook-angular.test.ts b/e2e/storybook-angular/src/storybook-angular.test.ts index 2f0aecbc26491c..ebef66d5e51e5c 100644 --- a/e2e/storybook-angular/src/storybook-angular.test.ts +++ b/e2e/storybook-angular/src/storybook-angular.test.ts @@ -46,42 +46,6 @@ describe('Storybook for Angular', () => { afterAll(() => cleanupProject()); - it('should not overwrite global storybook config files', () => { - const angularStorybookLib = uniq('test-ui-lib-angular'); - runCLI( - `generate @nrwl/angular:lib ${angularStorybookLib} --no-interactive` - ); - runCLI( - `generate @nrwl/angular:storybook-configuration ${angularStorybookLib} --generateStories --no-interactive` - ); - - checkFilesExist(`.storybook/main.js`); - writeFileSync( - tmpProjPath(`.storybook/main.js`), - ` - module.exports = { - stories: [], - addons: ['@storybook/addon-essentials'], - }; - - console.log('hi there'); - ` - ); - - // generate another lib with storybook config - const anotherAngularStorybookLib = uniq('test-ui-lib-angular2'); - runCLI( - `generate @nrwl/angular:lib ${anotherAngularStorybookLib} --no-interactive` - ); - runCLI( - `generate @nrwl/angular:storybook-configuration ${anotherAngularStorybookLib} --generateStories --no-interactive` - ); - - expect(readFile(`.storybook/main.js`)).toContain( - `console.log('hi there');` - ); - }); - describe('build storybook', () => { let angularStorybookLib; diff --git a/e2e/storybook/src/storybook-nested.test.ts b/e2e/storybook/src/storybook-nested.test.ts index 99137f6ab8f97b..13b8a9ccf1ad71 100644 --- a/e2e/storybook/src/storybook-nested.test.ts +++ b/e2e/storybook/src/storybook-nested.test.ts @@ -59,7 +59,6 @@ describe('Storybook generators for nested workspaces', () => { it('should generate storybook files', () => { checkFilesExist( '.storybook/main.js', - '.storybook/main.root.js', '.storybook/preview.js', '.storybook/tsconfig.json' ); @@ -77,8 +76,8 @@ describe('Storybook generators for nested workspaces', () => { `generate @nrwl/react:storybook-configuration ${nestedAppName} --generateStories --no-interactive` ); checkFilesExist( - `${nestedAppName}/.storybook/main.js`, - `${nestedAppName}/.storybook/tsconfig.json` + `apps/${nestedAppName}/.storybook/main.js`, + `apps/${nestedAppName}/.storybook/tsconfig.json` ); }); });