tachybase_todo/packages/core/test/src/index.ts
2023-02-23 20:14:50 +08:00

11 lines
319 B
TypeScript

export { mockDatabase } from '@nocobase/database';
export * from './mockServer';
const pgOnly: () => jest.Describe = () => (process.env.DB_DIALECT == 'postgres' ? describe : describe.skip);
export { pgOnly };
export function randomStr() {
// create random string
return Math.random().toString(36).substring(2);
}