Skip to content

Commit b8721eb

Browse files
committed
Couple renames for more consistency.
1 parent 2d97bad commit b8721eb

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

browser-extension/tests/test-utils.ts renamed to browser-extension/tests/har-fixture-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path'
33
import { fileURLToPath } from 'node:url'
44
import type { Har as HarFile } from 'har-format'
55
import { parseHTML } from 'linkedom'
6-
import { PAGES } from './har-index'
6+
import { PAGES } from './har/_har-index'
77

88
const __dirname = path.dirname(fileURLToPath(import.meta.url))
99

browser-extension/tests/fixture-har.ts renamed to browser-extension/tests/har-fixture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ vi.mock('../src/overtype/overtype', () => {
2121
})
2222

2323
import { describe as baseDescribe, test as baseTest, expect } from 'vitest'
24-
import type { PAGES } from './har-index'
25-
import { cleanupDOM, setupHarDOM } from './test-utils'
24+
import type { PAGES } from './har/_har-index'
25+
import { cleanupDOM, setupHarDOM } from './har-fixture-utils'
2626

2727
export const describe = baseDescribe
2828

browser-extension/tests/har-record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs/promises'
22
import path from 'node:path'
33
import { chromium } from '@playwright/test'
4-
import { PAGES } from './har-index'
4+
import { PAGES } from './har/_har-index'
55

66
// Convert glob pattern to regex
77
function globToRegex(pattern: string): RegExp {

browser-extension/tests/har-view.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'node:path'
44
import { fileURLToPath } from 'node:url'
55
import express from 'express'
66
import type { Har } from 'har-format'
7-
import { PAGES } from './har-index'
7+
import { PAGES } from './har/_har-index'
88

99
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1010
const app = express()
@@ -138,7 +138,9 @@ app.get('/', async (_req, res) => {
138138
// Serve the main HTML page from HAR
139139
app.get('/har/:key/:mode(clean|gitcasso)', async (req, res) => {
140140
try {
141+
// biome-ignore lint/complexity/useLiteralKeys: type comes from path string
141142
const key = req.params['key'] as keyof typeof PAGES
143+
// biome-ignore lint/complexity/useLiteralKeys: type comes from path string
142144
const mode = req.params['mode'] as 'clean' | 'gitcasso'
143145
if (!(key in PAGES)) {
144146
return res.status(400).send('Invalid key - not found in PAGES')
File renamed without changes.

browser-extension/tests/lib/enhancers/github.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, usingHar } from '../../fixture-har'
1+
import { describe, expect, usingHar } from '../../har-fixture'
22

33
// must import fixture **first** for mocks, the `expect` keeps biome from changing sort-order
44
expect

0 commit comments

Comments
 (0)