11 lines
319 B
TypeScript
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);
|
|
}
|