Unit-testing for those hard to reach places
--path
, (e.g. "test/**/*.js"
)--require
for supporting TypeScript more easily (e.g., -r ts-node/register
)// Old callback syntax, no longer supported!
const floss = require('floss');
floss({}, () => {
// done!
});
// Promise-based syntax in 4.0+
const { floss } = require('floss');
floss({}).then(() => {
// done!
});
--autoplay-policy=no-user-gesture-required
to not require user interaction for video and audio playback testing.Note: Did not upgrade chai yet because it has major breaking changes in running PixiJS tests.