import { createOptions, setupTokens, TestTokens, TestProjectId } from '../test.config'; import { ScientificConstructionService } from '../api/scientificConstruction.service'; jest.setTimeout(10000); const factory = createOptions(); const service = new ScientificConstructionService(factory); beforeAll(async () => { await setupTokens(); console.log('tokens are loaded'); console.log(TestTokens); }); test('获取科学施工列表', async () => { const data = { isPage: 0, sort: 'asc' }; const result = await service.loadConstructionList(TestProjectId, data); console.log('当前列表为', result); });