strong-tie/inbound-calls
0
1# Bundlers test stack2 3In some cases, developers bundle their apps for several targets such as serverless applications.4Even if it's not recommended by Fastify team; we need to ensure we do not break the build process.5Please note this might result in features behaving differently, like the version handling check for plugins.6 7## Test bundlers8 9The bundler test stack has been defined separately from the rest of the Unit testing stack because it's not a10part of the fastify lib itself. Note that the tests run in CI only on NodeJs LTS version.11Developers do not need to install every bundler to run unit tests.12 13To run the bundler tests you will need to install the repository dependencies followed by the bundler14stack dependencies. See:15 16```bash17 # path: root of repository /fastify18 npm i19 cd test/bundler/webpack20 npm i21 npm run test # test command runs bundle before of starting the test22```23 24## Bundler test development25 26To not break the fastify unit testing stack please name test files like this `*-test.js` and not `*.test.js`,27otherwise it will be targeted by the regular expression used for unit tests for fastify.28Tests need to ensure the build process works and the fastify application can be run,29no need to go in deep testing unless an issue is raised.30 