Skip to content

Commit

Permalink
fix: Fixed sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjtc committed Feb 10, 2023
1 parent 942a3cc commit 64feaa9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playwright/jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const { getTestRunnerConfig, setPreRender, setPostRender, setupPage } = require('../dist/cjs');

afterEach(async () => {
await jestPlaywright.resetPage();
await globalThis.__sbSetupPage(globalThis.page);
});

const testRunnerConfig = getTestRunnerConfig(process.env.STORYBOOK_CONFIG_DIR);
if (testRunnerConfig) {
if (testRunnerConfig.setup) {
Expand Down

0 comments on commit 64feaa9

Please sign in to comment.