Skip to content

Commit 9b62707

Browse files
committed
remove getLocalTestPath fixture
1 parent ef83bfc commit 9b62707

File tree

1 file changed

+0
-22
lines changed
  • dev-packages/browser-integration-tests/utils

1 file changed

+0
-22
lines changed

dev-packages/browser-integration-tests/utils/fixtures.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const getAsset = (assetDir: string, asset: string): string => {
3131
export type TestFixtures = {
3232
_autoSnapshotSuffix: void;
3333
testDir: string;
34-
getLocalTestPath: (options: { testDir: string; skipDsnRouteHandler?: boolean }) => Promise<string>;
3534
getLocalTestUrl: (options: {
3635
testDir: string;
3736
skipRouteHandler?: boolean;
@@ -109,27 +108,6 @@ const sentryTest = base.extend<TestFixtures>({
109108
return pagePath;
110109
});
111110
},
112-
113-
getLocalTestPath: ({ page }, use) => {
114-
return use(async ({ testDir, skipDsnRouteHandler }) => {
115-
const tmpDir = path.join(testDir, 'dist', crypto.randomUUID());
116-
const pagePath = `file:///${path.resolve(tmpDir, './index.html')}`;
117-
118-
await build(testDir, tmpDir);
119-
120-
if (!skipDsnRouteHandler) {
121-
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
122-
return route.fulfill({
123-
status: 200,
124-
contentType: 'application/json',
125-
body: JSON.stringify({ id: 'test-id' }),
126-
});
127-
});
128-
}
129-
130-
return pagePath;
131-
});
132-
},
133111
runInChromium: ({ runInSingleBrowser }, use) => {
134112
return use((fn, args) => runInSingleBrowser('chromium', fn, args));
135113
},

0 commit comments

Comments
 (0)