mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
bb63d7e60e
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com> Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> Co-authored-by: Aravind <aravindkp@outlook.in> Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com> Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
24 lines
599 B
JavaScript
24 lines
599 B
JavaScript
const { getActionsCodegen } = require('../../build/services/actions-codegen/codegen');
|
|
const { samplePayload } = require('./payload');
|
|
|
|
const test = async () => {
|
|
|
|
try {
|
|
const codegenFiles = await getActionsCodegen(samplePayload);
|
|
if (codegenFiles) {
|
|
console.log('✓ Actions codegen test passed');
|
|
} else {
|
|
console.log('✘ Actions codegen test failed');
|
|
console.log('Received empty codegen');
|
|
process.exit(1);
|
|
}
|
|
} catch (e) {
|
|
console.log('✘ Actions codegen test failed');
|
|
console.error(e);
|
|
process.exit(1);
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = test;
|