-
Notifications
You must be signed in to change notification settings - Fork 8
Upgrade zem from v0.x to v1
Sertac Olgunsoylu edited this page May 1, 2020
·
2 revisions
Hi there! 👋
This guides shows you the required steps to use zem test
for your extensions. Extensions you create using zem@v1+ have everything ready to use the test command.
In case you’re using an older version of zem, here’s what to do update your extension.
First, update the zem dependency of your extension using the following command:
npm i -S zem@latest
Then, copy the test module from to zem’s extensions template to your extensions source directory:
cp -rf node_modules/zem/src/template/src/fixtures ./src/
cp -rf node_modules/zem/src/template/src/index.test.js ./src/
Add/update test script in package.json file:
"scripts": {
...
"test": "zem test",
...
},
Now, you can run npm test
to test your extension using zem. 🎉