diff options
| author | Richie Foreman <[email protected]> | 2025-08-13 16:17:38 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 20:17:38 +0000 |
| commit | a90aeb3d8fd05fc6303ce9ef4e957c2e19cbe9c4 (patch) | |
| tree | 78423cea4d8f3a3f44d0e182b46fdf0a4bc45de0 /packages/core/src/utils/filesearch/result-cache.test.ts | |
| parent | 8fae227e8d53b962f8b7db3abff51906fad1d181 (diff) | |
chore(build/compiler): Enable a bunch of strict TS compiler options. (#6138)
Diffstat (limited to 'packages/core/src/utils/filesearch/result-cache.test.ts')
| -rw-r--r-- | packages/core/src/utils/filesearch/result-cache.test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/core/src/utils/filesearch/result-cache.test.ts b/packages/core/src/utils/filesearch/result-cache.test.ts index 0b1b4e17..fcfa3f00 100644 --- a/packages/core/src/utils/filesearch/result-cache.test.ts +++ b/packages/core/src/utils/filesearch/result-cache.test.ts @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -import path from 'node:path'; import { test, expect } from 'vitest'; import { ResultCache } from './result-cache.js'; @@ -17,7 +16,7 @@ test('ResultCache basic usage', async () => { 'subdir/other.js', 'subdir/nested/file.md', ]; - const cache = new ResultCache(files, path.resolve('.')); + const cache = new ResultCache(files); const { files: resultFiles, isExactMatch } = await cache.get('*.js'); expect(resultFiles).toEqual(files); expect(isExactMatch).toBe(false); @@ -25,7 +24,7 @@ test('ResultCache basic usage', async () => { test('ResultCache cache hit/miss', async () => { const files = ['foo.txt', 'bar.js', 'baz.md']; - const cache = new ResultCache(files, path.resolve('.')); + const cache = new ResultCache(files); // First call: miss const { files: result1Files, isExactMatch: isExactMatch1 } = await cache.get('*.js'); @@ -44,7 +43,7 @@ test('ResultCache cache hit/miss', async () => { test('ResultCache best base query', async () => { const files = ['foo.txt', 'foobar.js', 'baz.md']; - const cache = new ResultCache(files, path.resolve('.')); + const cache = new ResultCache(files); // Cache a broader query cache.set('foo', ['foo.txt', 'foobar.js']); |
