Example code for part 2 of my talk "JavaScript Testing In And Around WordPress"
git clone [email protected]:shelob9/testing-react-wordpress.git
yarn
yarn build
yarn start
yarn test --watch
yarn test
yarn test --ci
yarn zip
If you want to add additional entry points, for example if you want to add blocks or to have separate JavaScript/ CSS for the front-end, follow these steps:
entryPoints
in webpack.config.jsyarn build
build/$handle.js
and build/$handle.asset.php
where created.docker-compose up -d
Please feel free to open a pull request if you would like to contribute.