The moketest is a Temba server, created using the starter. Its purpose is to check the starter works with the current version of Temba.
To create and run a new smoketest server:
node test.js
cd smoketest
npm start
The smoketest uses the current Temba version from NPM.
To use the smoketest for testing a not yet released Temba version, follow these steps:
- Clone the temba repository
- Build Temba with
npm run build
- In the Temba root folder run
npm link
- Create and start the smoketest
- In the smoketest folder run
npm link temba
- To verify, run
npm ls temba
- Any change in the Temba build (
dist
folder) is now automatically applied to smoketest's Temba package 🎉 - When done, in smoketest, run
npm unlink temba
Whenever a new version of Temba is released, the starter should also be updated so it uses that new version.
The following steps need to be done:
-
In the temba-starter repo, update Temba:
npm i temba@latest
-
(alternatively, update all dependencies by running
python3 update.py
) -
Change the Temba dependency version in
package.template.json
-
(or copy over
dependencies
anddevDependencies
frompackage.json
topackage.template.json
) -
Commit and push all changes to GitHub
-
Update the version number of the starter:
npm version patch|minor|major
-
Publish to NPM:
npm publish
-
Push to GitHub
By publishing to NPM, and have users always add @latest
to npx create-temba-server@latest
we are sure both existing and new users will always use the latest version.