Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: move FastifyController tests to node:test #643

Merged
merged 21 commits into from
May 16, 2024
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6583a06
test: move FastifyController tests to `node:test`
EvanHahn May 13, 2024
ceb777a
chore: update dot-prop dependency to 9.0.0 (#633)
EvanHahn May 15, 2024
d06074b
chore: ignore docs folder for linting and prettier (#653)
tomasciccola May 15, 2024
e773b90
chore: fix lockfile to include platform-specific binaries (#654)
achou11 May 15, 2024
f623f10
chore: make prettier ignore coverage/ and proto/build/ directories (#…
achou11 May 15, 2024
e321629
test: move LocalDiscovery tests to `node:test` (#642)
EvanHahn May 16, 2024
41de808
test: move Fastify plugin tests to `node:test` and `node:assert` (#635)
EvanHahn May 16, 2024
5f10e09
test: move bitfield-rle tests to `node:test` (#636)
EvanHahn May 16, 2024
7762e59
test: move blob store tests to `node:test` (#638)
EvanHahn May 16, 2024
8387eb0
test: move DataStore tests to `node:test` (#641)
EvanHahn May 16, 2024
e354c1b
test: move DataType tests to `node:test` (#640)
EvanHahn May 16, 2024
9f5467b
test: move blob API tests to `node:test` (#637)
EvanHahn May 16, 2024
f6c0b35
test: move core ownership tests to `node:test` (#639)
EvanHahn May 16, 2024
b0ffea9
test: move RemoteBitfield tests to `node:test` (#646)
EvanHahn May 16, 2024
3763a1b
test: move test/lib/ to `node:test` (#645)
EvanHahn May 16, 2024
a39cb53
test: move invite API tests to `node:test` (#644)
EvanHahn May 16, 2024
1280245
test: move utils tests to `node:test` (#649)
EvanHahn May 16, 2024
a36fc2b
test: move CoreSyncState tests to `node:test`
EvanHahn May 16, 2024
56bcda4
test: move schema tests to `node:test` (#647)
EvanHahn May 16, 2024
49397fd
Remove assert.doesNotReject
EvanHahn May 16, 2024
0ab832e
Merge branch 'main' into fastify-controller-tests-to-nodetest
EvanHahn May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/fastify-controller.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @ts-check
import { test } from 'brittle'
import test from 'node:test'
import Fastify from 'fastify'

import { FastifyController } from '../src/fastify-controller.js'

test('lifecycle', async (t) => {
test('lifecycle', async () => {
const fastify = Fastify()
const fastifyController = new FastifyController({ fastify })

Expand All @@ -15,6 +15,7 @@ test('lifecycle', async (t) => {
{ host: '0.0.0.0' },
]

// This should run without errors.
for (const opts of startOptsFixtures) {
await fastifyController.start(opts)
await fastifyController.start(opts)
Expand All @@ -25,7 +26,5 @@ test('lifecycle', async (t) => {
await fastifyController.started()
await fastifyController.started()
await fastifyController.stop()

t.pass('server lifecycle works with valid opts')
}
})
Loading