Closed hchiufaire closed 1 year ago
Addresses #57 (missing json file from package) and #58 (tests not targeting /dist build folder)
jest-dist.config.js
"src"
"dist/src"
yarn test-dist-skip-build
yarn test-dist
html-entities.json
Note that yarn test still targets dev files as usual
yarn test
Addresses #57 (missing json file from package) and #58 (tests not targeting /dist build folder)
jest-dist.config.js
file that interprets all"src"
in imports as"dist/src"
during test executionyarn test-dist-skip-build
to run tests using the new config file (to target /dist)yarn test-dist
to build then executeyarn test-dist-skip-build
html-entities.json
in both bundlesyarn test-dist-skip-build
Note that
yarn test
still targets dev files as usualRunning
yarn test
to target dev folderRunning
yarn test-dist
to rebuild + target dist folder (before fix)Running
yarn test-dist
to rebuild + target dist folder (after fix)