- Install Node 18 or
nvm install
ornvm use
. - Install dependencies with
npm i
.
- Start the web server with
npm start
. - Browse to http://localhost:1234 to see "Hello world" rendered.
- Run
npm t
which will fail due to not being configured for JSX. - Help me get the test passing!
- The
type
field inpackage.json
must NOT be set tomodule
. Source files should end with.mjs
extension. I have reasons for this. - Test files must live in
./tests
and may end with.test.js
or.test.mjs
.