Skip to content
Source
Sign inSign up
samwillis/neon-realtime-electric
Open History to see the last commit

server.test.ts

17 lines625 Bytes

1import { afterAll, describe, expect } from 'vitest'
2import { runConformanceTests } from '@durable-streams/server-conformance-tests'
3import { createFixture } from './support/fixture.js'
4​
5for (const objects of [false, true]) {
6 describe(`production JSON read/store: ${objects ? 'objects' : 'memory'}`, async () => {
7 const fixture = await createFixture(objects)
8 afterAll(async () => {
9 try {
10 if (objects) expect(fixture.store.gets.length).toBeGreaterThan(0)
11 } finally {
12 await fixture.close()
13 }
14 })
15 runConformanceTests({ baseUrl: fixture.baseUrl, longPollTimeoutMs: 100 })
16 })