Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show that setupFilesAfterEnv scripts can define beforeAll #12702

Merged
merged 7 commits into from
Apr 21, 2022
14 changes: 14 additions & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,20 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});
beforeEach(() => {
// your code
});
afterEach(() => {
// your code
});
afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down
14 changes: 14 additions & 0 deletions website/versioned_docs/version-27.0/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,20 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});
beforeEach(() => {
// your code
});
afterEach(() => {
// your code
});
afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down
14 changes: 14 additions & 0 deletions website/versioned_docs/version-27.1/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,20 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});
beforeEach(() => {
// your code
});
afterEach(() => {
// your code
});
afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down
14 changes: 14 additions & 0 deletions website/versioned_docs/version-27.2/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,20 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});
beforeEach(() => {
// your code
});
afterEach(() => {
// your code
});
afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down
14 changes: 14 additions & 0 deletions website/versioned_docs/version-27.4/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,20 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});
beforeEach(() => {
// your code
});
afterEach(() => {
// your code
});
afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down
17 changes: 17 additions & 0 deletions website/versioned_docs/version-27.5/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,23 @@ Example `jest.setup.js` file

```js
jest.setTimeout(10000); // in milliseconds

// you can even use the setup/teardown methods
beforeAll(() => {
// your code
});

beforeEach(() => {
// your code
});

afterEach(() => {
// your code
});

afterAll(() => {
// your code
});
```

### `slowTestThreshold` \[number]
Expand Down