fix: jest.setTimeout 300000
This commit is contained in:
parent
db3a8a7499
commit
47bd72fa49
@ -1 +1,2 @@
|
|||||||
|
jest.setTimeout(300000);
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
preset: 'ts-jest',
|
preset: 'ts-jest',
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
setupFiles: [path.resolve(__dirname, 'dotenv.js')],
|
setupFilesAfterEnv: [path.resolve(__dirname, 'dotenv.js')],
|
||||||
testMatch: [
|
testMatch: [
|
||||||
// '**/__tests__/**/*.[jt]s?(x)',
|
// '**/__tests__/**/*.[jt]s?(x)',
|
||||||
'**/?(*.)+(spec|test).[jt]s?(x)'
|
'**/?(*.)+(spec|test).[jt]s?(x)'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Agent, getAgent, getApp } from '..';
|
import { Agent, getAgent, getApp } from '..';
|
||||||
import { Application } from '@nocobase/server';
|
import { Application } from '@nocobase/server';
|
||||||
import { types } from '../../interfaces';
|
import { types } from '../../interfaces';
|
||||||
jest.setTimeout(30000);
|
|
||||||
describe('collection hooks', () => {
|
describe('collection hooks', () => {
|
||||||
let app: Application;
|
let app: Application;
|
||||||
let agent: Agent;
|
let agent: Agent;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Agent, getAgent, getApp } from '../';
|
import { Agent, getAgent, getApp } from '../';
|
||||||
import { Application } from '@nocobase/server';
|
import { Application } from '@nocobase/server';
|
||||||
import * as types from '../../interfaces/types';
|
import * as types from '../../interfaces/types';
|
||||||
jest.setTimeout(30000);
|
|
||||||
describe('models.collection', () => {
|
describe('models.collection', () => {
|
||||||
let app: Application;
|
let app: Application;
|
||||||
let agent: Agent;
|
let agent: Agent;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { Agent, getAgent, getApp } from '../';
|
import { Agent, getAgent, getApp } from '../';
|
||||||
import { Application } from '@nocobase/server';
|
import { Application } from '@nocobase/server';
|
||||||
import { options, types } from '../../interfaces';
|
import { options, types } from '../../interfaces';
|
||||||
jest.setTimeout(30000);
|
|
||||||
import { FieldModel } from '../../models';
|
import { FieldModel } from '../../models';
|
||||||
|
|
||||||
describe('models.field', () => {
|
describe('models.field', () => {
|
||||||
let app: Application;
|
let app: Application;
|
||||||
let agent: Agent;
|
let agent: Agent;
|
||||||
|
@ -5,7 +5,7 @@ import { FILE_FIELD_NAME, STORAGE_TYPE_LOCAL } from '../constants';
|
|||||||
import { getApp, getAgent, getAPI } from '.';
|
import { getApp, getAgent, getAPI } from '.';
|
||||||
|
|
||||||
const DEFAULT_LOCAL_BASE_URL = process.env.LOCAL_STORAGE_BASE_URL || `http://localhost:${process.env.HTTP_PORT}/uploads`;
|
const DEFAULT_LOCAL_BASE_URL = process.env.LOCAL_STORAGE_BASE_URL || `http://localhost:${process.env.HTTP_PORT}/uploads`;
|
||||||
jest.setTimeout(30000);
|
|
||||||
describe('action', () => {
|
describe('action', () => {
|
||||||
let app;
|
let app;
|
||||||
let agent;
|
let agent;
|
||||||
|
Loading…
Reference in New Issue
Block a user