Skip to content

Instantly share code, notes, and snippets.

@x47188
x47188 / 01-fs.ts
Last active October 23, 2023 20:24
Jest + Typescript + mock + fs
// __mocks__/fs.ts
const promises = {
readFile: jest.fn()
};
export { // or whatever you've to mock.
promises
}
@x47188
x47188 / 00-usage.md
Last active August 19, 2021 16:22
Snake Case Naming Strategy for TypeORM
createConnection({
  [...]
  namingStrategy: new NamingStrategy()
})