Skip to content

Commit e5bfee5

Browse files
committed
feat: add ability to configure capture amount limits
1 parent b29e88c commit e5bfee5

File tree

10 files changed

+361
-123
lines changed

10 files changed

+361
-123
lines changed

e2e/capture.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { test, expect } from '@playwright/test'
2-
import { NEXTJS_API_PORT, NEXTJS_PORT, NUXT_PORT, SVELTE_PORT, fetchCaptures, getBaseUrl, getLatestCapture, waitMs } from './util'
2+
import { NEXTJS_API_PORT, NEXTJS_PORT, NUXT_PORT, SVELTE_PORT, fetchCaptures, getBaseUrl, getLatestCapture, waitMs, getApiBase } from './util'
33
import { join } from 'path'
44
import { existsSync, rmSync } from 'fs'
5-
import { getApiBase } from '../src/core/config'
65

76
test.afterAll(() => {
87
// Delete cache directories

e2e/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { getApiBase } from "../src/core/config";
2-
1+
export const getApiBase = () => 'https://www.useflytrap.com';
32
// Capturing
43
export const NEXTJS_API_PORT = 3000;
54
export const NEXTJS_PORT = 3001;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"pkg-dir": "^7.0.0",
6565
"serialize-error": "^11.0.0",
6666
"superjson": "^1.13.1",
67+
"ts-results": "^3.3.0",
6768
"ufo": "^1.0.0",
6869
"unplugin": "^1.3.1"
6970
},
@@ -82,7 +83,7 @@
8283
"@types/degit": "^2.8.3",
8384
"@types/estree": "1.0.0",
8485
"@types/node": "18.15.3",
85-
"@typescript-eslint/eslint-plugin": "^6.5.0",
86+
"@typescript-eslint/eslint-plugin": "^6.11.0",
8687
"@vitest/browser": "^0.30.1",
8788
"acorn": "8.8.2",
8889
"class-transformer": "^0.5.1",
@@ -101,7 +102,7 @@
101102
"rollup-plugin-dts": "^5.3.0",
102103
"rollup-plugin-esbuild": "^5.0.0",
103104
"safaridriver": "^0.0.4",
104-
"typescript": "4.8.4",
105+
"typescript": "^5.2.2",
105106
"unbuild": "^1.2.1",
106107
"vite": "4.2.0",
107108
"vitest": "^0.30.1",

0 commit comments

Comments
 (0)