This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getEndpoint = () => { | |
res.send({ | |
id: 1, | |
name: "Bob Smith", | |
age: 33, | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { execSync } from 'child_process'; | |
import * as fs from 'fs'; | |
// tslint:disable-next-line: no-console | |
console.log('...'); | |
// tslint:disable-next-line: no-console | |
console.log('Starting the process of checking if a migration script exists for the current schema...'); | |
const failureArtifactName = 'FAILURE--THIS_PROVES_A_DEV_FORGOT_TO_GENERATE_AND_APPLY_A_SCHEMA'; |