Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 31, 2022
1 parent 7de46f0 commit 8a26a58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/playwright/transformPlaywright.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ expect.addSnapshotSerializer({

describe('Playwright', () => {
beforeEach(() => {
const basePath = '/Users/yannbraga/open-source/test-runner';
const pathSpy = jest.spyOn(path, 'resolve');
pathSpy.mockReturnValueOnce(basePath + '/.storybook');
pathSpy.mockReturnValueOnce(basePath);
const relativeSpy = jest.spyOn(path, 'relative');
relativeSpy.mockReturnValueOnce('stories/basic/Header.stories.js');
jest.spyOn(coreCommon, 'serverRequire').mockImplementation(() => ({
stories: [
{
Expand Down

0 comments on commit 8a26a58

Please sign in to comment.