Closed rglover closed 2 months ago
Don't forget to mention how to handle errors for various API calls (e.g., uploaders):
test.that('uploader throws error for incorrect file type', async (assert = {}) => {
const response = await test.uploaders.upload('tester', {
files: [test.utils.createFile(256, 'blah.txt', 'text/plain')],
}).catch((error) => error);
assert.is(response?.errors[0]?.message?.includes('not supported'), true);
});
Topics that will need to be covered:
@joystick.js/cli
joystick test
andjoystick test --watch
@joystick.js/test
@joystick.js/ui
@joystick.js/node