- Our team is committed to developing React-Kotlin/js apps using a TDD approach. To this end, we are developing a starting project template to facilitate such development building off the Kotlin JS Hands-On Lab tutorial
This repository is the code corresponding to the hands-on lab Building Web Applications with React and Kotlin JS.
You can find the code of the lab after each step outlined in the tutorial in the corresponding branch.
- All dependencies have been updated to the latest version of kotlin, kotlin-wrappers, gradle, kotest, etc.
- This example has been enhanced with the changes needed to run cucumber tests against the React app
- cucumber tests run in jvmTest rather than jsTest
- ReactApp is started on demand during a scenario and is shut down after after each scenario
- Added support for using react-testing-library and user-event-testing-library kotlin wrappers from https://github.com/robertfmurdock/jsmints/
- React component tests no longer have to be run using jsBrowserTest/karma but can now run using jsNodeTest/mocha
- Running tests in mocha provides a faster and improved experience than using jsBrowserTest/karma
- Added support for using kotlin-react-dom-test-utils-js
- Only run in
jsBrowserTest
task and not injsNodeTest
- Downloads Chrome before running
jsBrowserTest
- Chrome is removed on task
clean
- Chrome is removed on task
- Note: this support is still here but no longer the recommended approach
- Original code provided by Jetbrains under the Apache 2.0 license. Additional code changes also provided under the Apache 2.0 license.