Skip to content

Commit

Permalink
Updated some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbjensen committed Aug 31, 2020
1 parent 2f508ba commit 817790d
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 403 deletions.
10 changes: 10 additions & 0 deletions __tests__/bin/mcg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,14 @@ describe('mcg', () => {
});
await unlink(configFilePath);
});

describe('with attributes passed', () => {
it.todo('should generate a migration file that specifies what fields to put in the model table');
it.todo('should generate a model file with a jsonSchema property');
it.todo('should define properties for the test seed data file');
it.todo('should define things to test in the model test file, such as validations');
});
// Q - how to pass attributes in a way that can support jsonSchema, migration, test seed and test code?
// T - I wonder if official jsonSchema JSON would be possible - would be a great way to assemble an API from a schema

});
2 changes: 1 addition & 1 deletion bin/mcg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const mainAction = async ({ args }) => {
const mainDir =
program.mainDir || configFileOptions.mainDir || process.cwd();
const filesCreated = await main(modelName, mainDir, testFolder);
const attributes = program.attributes;
const { attributes } = program;
// TODO - have a way to turn the attributes into a JS object
// TODO - use that js object to:
// - create the table columns in the migration file
Expand Down
Loading

0 comments on commit 817790d

Please sign in to comment.