Skip to content

Commit

Permalink
show that setupFilesAfterEnv scripts can define beforeAll (#12702)
Browse files Browse the repository at this point in the history
  • Loading branch information
katlim-br committed Apr 21, 2022
1 parent 0208815 commit 625e0bc
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/Configuration.md
Expand Up @@ -1117,6 +1117,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
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
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
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
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
17 changes: 17 additions & 0 deletions website/versioned_docs/version-27.5/Configuration.md
Expand Up @@ -930,6 +930,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

0 comments on commit 625e0bc

Please sign in to comment.