Skip to content

Commit 01d8961

Browse files
committed
chore: update examples ESM-plugin-with-custom-server-options.js
1 parent a7488dd commit 01d8961

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/package-type-module/ESM-plugin-with-custom-server-options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ export default async function plugin (fastify, options) {
1010
}
1111

1212
export const options = {
13-
ignoreTrailingSlash: true
13+
routerOptions: {
14+
ignoreTrailingSlash: true
15+
}
1416
}

test/start.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ test('should start the server listening on 0.0.0.0 when running in kubernetes',
566566
t.assert.ok('server closed')
567567
})
568568

569-
test('should start the server with watch options that the child process restart when directory changed', { skip: true }, async (t) => {
569+
test('should start the server with watch options that the child process restart when directory changed', { skip: ['win32', 'darwin'].includes(process.platform) || process.env.CI === 'true' }, async (t) => {
570570
t.plan(3)
571571
const tmpjs = path.resolve(baseFilename + '.js')
572572

@@ -595,7 +595,7 @@ test('should start the server with watch options that the child process restart
595595
t.assert.ok('should receive restart event')
596596
})
597597

598-
test('should start the server with watch and verbose-watch options that the child process restart when directory changed with console message about changes ', { skip: true }, async (t) => {
598+
test('should start the server with watch and verbose-watch options that the child process restart when directory changed with console message about changes ', { skip: ['win32', 'darwin'].includes(process.platform) || process.env.CI === 'true' }, async (t) => {
599599
t.plan(4)
600600

601601
const spy = sinon.spy()

0 commit comments

Comments
 (0)