Skip to content

Commit

Permalink
Merge pull request #4187 from storybooks/angular-cli/fix-prebuild
Browse files Browse the repository at this point in the history
Angular cli - fix prebuild
  • Loading branch information
igor-dv authored Sep 18, 2018
2 parents 99d9288 + abf3c3c commit 9b4f50c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/angular-cli/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ testem.log
# System Files
.DS_Store
Thumbs.db
addon-jest.testresults.json
1 change: 0 additions & 1 deletion examples/angular-cli/addon-jest.testresults.json

This file was deleted.

2 changes: 2 additions & 0 deletions examples/angular-cli/angularshots.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import path from 'path';
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';

jest.mock('./addon-jest.testresults.json', () => ({}), { virtual: true });

initStoryshots({
framework: 'angular',
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
Expand Down
4 changes: 2 additions & 2 deletions examples/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"/node_modules/",
"/build/",
"/storybook-static/",
"angularshots.test.js"
"angularshots.test.js",
"dist"
],
"transform": {
".(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js",
"^.+\\.(ts|js|html)$": "<rootDir>/../../node_modules/jest-preset-angular/preprocessor.js"
}
},
Expand Down

0 comments on commit 9b4f50c

Please sign in to comment.