mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
fix(backup-restore): test case errors (#5201)
* fix: backup restore * fix: test case * fix: test case
This commit is contained in:
@@ -14,7 +14,7 @@ describe('cli', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
app = await createMockServer({
|
||||
plugins: ['nocobase'],
|
||||
plugins: ['nocobase', 'backup-restore'],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user