A monorepo setup for k6 tests project and a local library to include into the tests project with tree-shaking not set up.
yarn
cd libs/helpers
yarn build
cd ../../tests
yarn bundle
- Check
tests\dist\get-200-status-test.js
and search forTest
. It will include bothTest 1
andTest 2
, even thoughTest 2
is not used. - Expected result - enable tree-shaking if possible so that only relevant parts are included into the resulting .js file.