提交 96a09272 编写于 作者: 雪洛's avatar 雪洛

chore: update jest timeout

上级 6016990c
module.exports = { module.exports = {
testTimeout: 10000, testTimeout: 30000,
reporters: ['default'], reporters: ['default'],
watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
moduleFileExtensions: ['js', 'json'], moduleFileExtensions: ['js', 'json'],
......
...@@ -10,17 +10,17 @@ describe('unicloud-database', () => { ...@@ -10,17 +10,17 @@ describe('unicloud-database', () => {
await page.callMethod('dbRemove') await page.callMethod('dbRemove')
await page.waitFor(3000) await page.waitFor(3000)
await page.callMethod('dbAdd') await page.callMethod('dbAdd')
await page.waitFor(2000) await page.waitFor(1500)
await page.callMethod('dbBatchAdd') await page.callMethod('dbBatchAdd')
await page.waitFor(2000) await page.waitFor(1500)
await page.callMethod('dbGet') await page.callMethod('dbGet')
await page.waitFor(2000) await page.waitFor(1500)
await page.callMethod('dbGetWithCommand') await page.callMethod('dbGetWithCommand')
await page.waitFor(2000) await page.waitFor(1500)
await page.callMethod('dbUpdate') await page.callMethod('dbUpdate')
await page.waitFor(2000) await page.waitFor(1500)
await page.callMethod('dbRemove') await page.callMethod('dbRemove')
await page.waitFor(2000) await page.waitFor(1500)
const { const {
addId, addId,
...@@ -32,13 +32,11 @@ describe('unicloud-database', () => { ...@@ -32,13 +32,11 @@ describe('unicloud-database', () => {
removeDeleted, removeDeleted,
} = await page.data() } = await page.data()
console.error((await page.data()).batchAddinserted) expect(addId !== '').toBe(true)
expect(addId.length > 0).toBe(true)
expect(batchAddIds.length).toBe(2) expect(batchAddIds.length).toBe(2)
expect(batchAddinserted).toBe(2) expect(batchAddinserted).toBe(2)
expect(getData.length).toBe(2) expect(getData.length).toBe(2)
expect(getWithCommandData.length).toBe(2) expect(getWithCommandData.length).toBe(1)
expect(updateUpdated).toBe(3) expect(updateUpdated).toBe(3)
expect(removeDeleted).toBe(3) expect(removeDeleted).toBe(3)
...@@ -48,7 +46,7 @@ describe('unicloud-database', () => { ...@@ -48,7 +46,7 @@ describe('unicloud-database', () => {
await page.callMethod('dbLookupInit') await page.callMethod('dbLookupInit')
await page.waitFor(3000) await page.waitFor(3000)
await page.callMethod('dbLookup') await page.callMethod('dbLookup')
await page.waitFor(2000) await page.waitFor(1500)
const { const {
lookupData lookupData
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册