From 06ad0afb4092b2f44a134ca20d981a5a420220a1 Mon Sep 17 00:00:00 2001 From: Andy Dover Date: Sat, 9 May 2020 20:35:54 +1200 Subject: [PATCH] Change reference for jest-preset-angular/build/setupJest as per https://github.com/thymikee/jest-preset-angular/blob/5c071692d174d78639f952bf795bc06abd72d28c/CHANGELOG.md#migration-guide --- .../storyshots-core/src/frameworks/angular/loader.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts b/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts index b565273ffe9a..0b7f2685ee7e 100644 --- a/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts +++ b/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts @@ -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 {