From 74a532303877266d72ea406f13cf3608d64874fc Mon Sep 17 00:00:00 2001 From: jean Date: Sun, 15 Dec 2024 16:59:37 +0100 Subject: [PATCH] refactor: generate test build function configured with skipOverride --- templates/app-esm/test/helper.js | 4 +++- templates/app-ts-esm/test/helper.ts | 4 +++- templates/app-ts/test/helper.ts | 4 +++- templates/app/test/helper.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) 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