fix(backup-restore): test case errors (#5201)

* fix: backup restore

* fix: test case

* fix: test case
This commit is contained in:
chenos
2024-09-05 13:20:43 +08:00
committed by GitHub
parent eb0a2c3906
commit a4eb04e459
3 changed files with 3 additions and 3 deletions
@@ -14,7 +14,7 @@ describe('cli', () => {
beforeEach(async () => {
app = await createMockServer({
plugins: ['nocobase'],
plugins: ['nocobase', 'backup-restore'],
});
});
@@ -10,11 +10,11 @@
import { Database } from '@nocobase/database';
import { MockServer } from '@nocobase/test';
import fs from 'fs';
import * as process from 'node:process';
import path from 'path';
import { Dumper } from '../dumper';
import { Restorer } from '../restorer';
import createApp from './index';
import * as process from 'node:process';
describe('dumper', () => {
let app: MockServer;
@@ -11,7 +11,7 @@ import { createMockServer } from '@nocobase/test';
export default async function createApp() {
const app = await createMockServer({
plugins: ['nocobase', 'collection-sql'],
plugins: ['nocobase', 'collection-sql', 'backup-restore'],
});
return app;
}