完整代码加修复数据库连接字符串!!!
This commit is contained in:
11
node_modules/fastify-plugin/test/esm/esm.mjs
generated
vendored
Normal file
11
node_modules/fastify-plugin/test/esm/esm.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { test } from 'node:test'
|
||||
import fp from '../../plugin.js'
|
||||
|
||||
test('esm base support', (t) => {
|
||||
fp((fastify, opts, next) => {
|
||||
next()
|
||||
}, {
|
||||
fastify: '^5.0.0'
|
||||
})
|
||||
t.assert.ok(true, 'fp function called without throwing an error')
|
||||
})
|
||||
Reference in New Issue
Block a user