Skip to content

Commit

Permalink
refactor: generate test build function configured with skipOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Dec 15, 2024
1 parent a8f531a commit 74a5323
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion templates/app-esm/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion templates/app-ts-esm/test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion templates/app-ts/test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion templates/app/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74a5323

Please sign in to comment.