diff --git a/templates/app-esm/test/helper.js b/templates/app-esm/test/helper.js index 6fb94119..4f9a432f 100644 --- a/templates/app-esm/test/helper.js +++ b/templates/app-esm/test/helper.js @@ -12,7 +12,9 @@ const AppPath = path.join(__dirname, '..', 'app.js') // Fill in this config with all the configurations // needed for testing the application function config () { - return {} + return { + skipOverride: true // Register our application with fastify-plugin + } } // automatically build and tear down our instance diff --git a/templates/app-ts-esm/test/helper.ts b/templates/app-ts-esm/test/helper.ts index 253bcf92..1a38393e 100644 --- a/templates/app-ts-esm/test/helper.ts +++ b/templates/app-ts-esm/test/helper.ts @@ -15,7 +15,9 @@ const AppPath = path.join(__dirname, '..', 'src', 'app.ts') // Fill in this config with all the configurations // needed for testing the application async function config () { - return {} + return { + skipOverride: true // Register our application with fastify-plugin + } } // Automatically build and tear down our instance diff --git a/templates/app-ts/test/helper.ts b/templates/app-ts/test/helper.ts index 70451775..b2930b04 100644 --- a/templates/app-ts/test/helper.ts +++ b/templates/app-ts/test/helper.ts @@ -12,7 +12,9 @@ const AppPath = path.join(__dirname, '..', 'src', 'app.ts') // Fill in this config with all the configurations // needed for testing the application async function config () { - return {} + return { + skipOverride: true // Register our application with fastify-plugin + } } // Automatically build and tear down our instance diff --git a/templates/app/test/helper.js b/templates/app/test/helper.js index a5237509..c5095f06 100644 --- a/templates/app/test/helper.js +++ b/templates/app/test/helper.js @@ -10,7 +10,9 @@ const AppPath = path.join(__dirname, '..', 'app.js') // Fill in this config with all the configurations // needed for testing the application function config () { - return {} + return { + skipOverride: true // Register our application with fastify-plugin + } } // automatically build and tear down our instance