@iobroker/create-adapter
Version:
Command line utility to create customized ioBroker adapters
25 lines (24 loc) • 725 B
JavaScript
;
const templateFunction = answers => {
const isAdapter = answers.features.indexOf("adapter") > -1;
if (!isAdapter) {
return;
}
const isScheduleAdapter = answers.startMode === "schedule";
const template = `
const path = require("path");
const { tests } = require("@iobroker/testing");
// Run integration tests - See https://github.com/ioBroker/testing for a detailed explanation and further options${isScheduleAdapter
? `
tests.integration(path.join(__dirname, ".."), {
allowedExitCodes: [11],
});
`
: `
tests.integration(path.join(__dirname, ".."));
`}
`;
return template.trim();
};
module.exports = templateFunction;
//# sourceMappingURL=integration.js.js.map