Skip to content
Jerome Vercide edited this page Apr 22, 2021 · 2 revisions

Publishing to npm

  • First run donejs test to make sure the tests are passing
  • Then run donejs release:[patch, minor, major] depending on how much work is being released (https://semver.org/)
  • After it’s published, make sure the Github tests actions pass (green check mark on the branch).

Tests FAQ

Where do I add tests?

  • You can import your test file in src/test/test.js

How do I run tests?

  • Run donejs test in the command line
  • Run the test in the browser localhost:<port>:/src/<your-test-file>

Do I need to configure karma before running tests?

  • No