diff --git a/package.json b/package.json index 2cfe7b02..58e71323 100644 --- a/package.json +++ b/package.json @@ -119,6 +119,9 @@ "engines": { "node": "^16.10.0 || ^18.0.0 || >=20.0.0" }, + "resolutions": { + "@babel/types": "7.23.6" + }, "publishConfig": { "access": "public" }, diff --git a/src/playwright/hooks.ts b/src/playwright/hooks.ts index f2032dab..851bd9c1 100644 --- a/src/playwright/hooks.ts +++ b/src/playwright/hooks.ts @@ -1,5 +1,5 @@ import type { BrowserContext, Page } from 'playwright'; -import type { StoryContext } from '@storybook/csf'; +import type { StoryContextForEnhancers } from '@storybook/csf'; export type TestContext = { id: string; @@ -73,7 +73,10 @@ export const setPostVisit = (postVisit: TestHook) => { globalThis.__sbPostVisit = postVisit; }; -export const getStoryContext = async (page: Page, context: TestContext): Promise => { +export const getStoryContext = async ( + page: Page, + context: TestContext +): Promise => { return page.evaluate(({ storyId }) => globalThis.__getContext(storyId), { storyId: context.id, }); diff --git a/yarn.lock b/yarn.lock index 59085e5f..20cbbce0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -616,13 +616,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.24.1": - version: 7.24.1 - resolution: "@babel/helper-string-parser@npm:7.24.1" - checksum: 8404e865b06013979a12406aab4c0e8d2e377199deec09dfe9f57b833b0c9ce7b6e8c1c553f2da8d0bcd240c5005bd7a269f4fef0d628aeb7d5fe035c436fb67 - languageName: node - linkType: hard - "@babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" @@ -2656,7 +2649,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.9, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.19, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.6, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": +"@babel/types@npm:7.23.6": version: 7.23.6 resolution: "@babel/types@npm:7.23.6" dependencies: @@ -2667,28 +2660,6 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.24.0": - version: 7.24.0 - resolution: "@babel/types@npm:7.24.0" - dependencies: - "@babel/helper-string-parser": ^7.23.4 - "@babel/helper-validator-identifier": ^7.22.20 - to-fast-properties: ^2.0.0 - checksum: 4b574a37d490f621470ff36a5afaac6deca5546edcb9b5e316d39acbb20998e9c2be42f3fc0bf2b55906fc49ff2a5a6a097e8f5a726ee3f708a0b0ca93aed807 - languageName: node - linkType: hard - -"@babel/types@npm:^7.24.5": - version: 7.24.5 - resolution: "@babel/types@npm:7.24.5" - dependencies: - "@babel/helper-string-parser": ^7.24.1 - "@babel/helper-validator-identifier": ^7.24.5 - to-fast-properties: ^2.0.0 - checksum: 8eeeacd996593b176e649ee49d8dc3f26f9bb6aa1e3b592030e61a0e58ea010fb018dccc51e5314c8139409ea6cbab02e29b33e674e1f6962d8e24c52da6375b - languageName: node - linkType: hard - "@base2/pretty-print-object@npm:1.0.1": version: 1.0.1 resolution: "@base2/pretty-print-object@npm:1.0.1"