Skip to content

Commit

Permalink
chore: fix test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Dec 15, 2021
1 parent 7d5cd74 commit d84a254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
modulePathIgnorePatterns: ['<rootDir>/package.json'],
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json',
tsconfig: 'tsconfig.json',
},
},
};
3 changes: 1 addition & 2 deletions packages/hooks/src/useAntdTable/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface Query {

describe('useAntdTable', () => {
// jest.useFakeTimers();
jest.setTimeout(30000);

let queryArgs: any;
const asyncFn = (query: Query, formData: any = {}) => {
Expand Down Expand Up @@ -227,7 +226,7 @@ describe('useAntdTable', () => {
expect(form.fieldsValue.name).toEqual('default name');
expect(form.fieldsValue.phone).toBeUndefined();
expect(form.fieldsValue.email).toBeUndefined();
});
}, 30000);

it('should defaultParams work', async () => {
queryArgs = undefined;
Expand Down

0 comments on commit d84a254

Please sign in to comment.