Skip to content

Commit 4340b5f

Browse files
committed
test(cache): guard runtime dependency manifest
1 parent e9a2277 commit 4340b5f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { describe, expect, test } from 'bun:test'
2+
3+
describe('@stacksjs/cache package contract', () => {
4+
test('ships the cache engine needed by its public runtime', async () => {
5+
const manifest = await Bun.file(new URL('../package.json', import.meta.url)).json() as {
6+
dependencies?: Record<string, string>
7+
devDependencies?: Record<string, string>
8+
}
9+
10+
expect(manifest.dependencies?.['@stacksjs/ts-cache']).toBeTruthy()
11+
expect(manifest.devDependencies?.['@stacksjs/ts-cache']).toBeUndefined()
12+
})
13+
})

0 commit comments

Comments
 (0)