Skip to content

Commit

Permalink
Merge pull request #10699 from adover/fix/9072-jest-preset-angular-build
Browse files Browse the repository at this point in the history
Change reference for jest-preset-angular/build/setupJest as per migration guide
  • Loading branch information
shilman authored May 11, 2020
2 parents 5df886b + 06ad0af commit 00170a8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function setupAngularJestPreset() {
// jest.requireActual('core-js/es7/reflect');

// Angular + Jest + Storyshots = Crazy Shit:
// We need to require 'jest-preset-angular/setupJest' before any storybook code
// is running inside jest - one of the things that `jest-preset-angular/setupJest` does is
// We need to require 'jest-preset-angular/build/setupJest' before any storybook code
// is running inside jest - one of the things that `jest-preset-angular/build/setupJest` does is
// extending the `window.Reflect` with all the needed metadata functions, that are required
// for emission of the TS decorations like 'design:paramtypes'
jest.requireActual('jest-preset-angular/setupJest');
jest.requireActual('jest-preset-angular/build/setupJest');
}

function test(options: StoryshotsOptions): boolean {
Expand Down

0 comments on commit 00170a8

Please sign in to comment.