Skip to content

Commit

Permalink
fix config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Nov 18, 2023
1 parent 3bdd1bc commit 731adcf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions src/crawler/pageScreenshots.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { createShotsFolders } from '../utils';
import { type PageScreenshotParameter, configure } from '../config';
import { defaultTestConfig } from '../testUtils';
import { generatePageShotItems } from './pageScreenshots';

beforeAll(async () => {
await configure({
customProjectConfig: {
...defaultTestConfig,
timeouts: {
fetchStories: 2000,
},
Expand Down
2 changes: 0 additions & 2 deletions src/crawler/storybook.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createShotsFolders, getBrowser } from '../utils';
import { configure } from '../config';
import { defaultTestConfig } from '../testUtils';
import {
collectStories,
collectStoriesViaStoriesJson,
Expand All @@ -21,7 +20,6 @@ const storyBookV7Url = getStoryBookUrl(
beforeAll(async () => {
await configure({
customProjectConfig: {
...defaultTestConfig,
timeouts: {
fetchStories: 2000,
},
Expand Down
10 changes: 0 additions & 10 deletions src/testUtils.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ import {
type Changes,
} from './utils';
import { configure } from './config';
import { defaultTestConfig } from './testUtils';

beforeAll(async () => {
await configure({
customProjectConfig: {
...defaultTestConfig,
lostPixelProjectId: 'lorem-ipsum',
ciBuildId: '456',
},
customProjectConfig: {},
});
});

Expand Down

0 comments on commit 731adcf

Please sign in to comment.