You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the issue has not already been raised
Issue
Command "fastify generate . --lang=ts" generates:
npm script "test": npm run build:ts && tsc -p test/tsconfig.json && tap --ts "test/**/*.test.ts"
file: ./test/helper.ts
Inside ./test/helper.ts the variable AppPath is created that ends with "src/app.ts".
Before the tests are run, the code inside the ./dist folder will already be transpiled because the first part of the npm script "test" worked (npm run build:ts).
The app will be transpiled again when "build" function is called (imported from ./test/helper.ts).
You can log used typescript file paths in AutoloadPluginOptions.matchFilter function.
Why not create the AppPath that ends with "dist/app.js" or remove "npm run build:ts" part from the "test" script?
The text was updated successfully, but these errors were encountered:
Prerequisites
Issue
Command "fastify generate . --lang=ts" generates:
Inside ./test/helper.ts the variable
AppPath
is created that ends with "src/app.ts".Before the tests are run, the code inside the ./dist folder will already be transpiled because the first part of the npm script "test" worked (npm run build:ts).
The app will be transpiled again when "build" function is called (imported from ./test/helper.ts).
You can log used typescript file paths in
AutoloadPluginOptions.matchFilter
function.Why not create the
AppPath
that ends with "dist/app.js" or remove "npm run build:ts" part from the "test" script?The text was updated successfully, but these errors were encountered: